On and off time icon

Hello. Here’s how to turn the icon on and off:

((floor(((#Ds#/2)-(floor(#Ds#/2))) * 2)) * 100).

The icon turns on and off at the same time. Illuminates for 0.5 s. Off 0.5 s

How to make the icon off time longer than the on time. Thus: On icon 1s. Off icon 2 s. (example)

Thk

2 Likes

Hello.
I use expression like $(#Dsm#%1)<0.5?100:0$ - that splits the second in half lit and half dark.
To have the dark phase longer, I just lower the number to compare in the condition like
$(#Dsm#%1)<0.3?100:0$

2 Likes

thank you friend … it helped. And if it is a longer period of time than one sec.? Example: dark 1.2 sec. on 0.8 sec.

1 Like

The total time is now 2 seconds, so it would be $(#Dsm#%2)<0.8?100:0$ (or $(#Dsm#%2)>1.2?100:0$ if you want to start dark)

1 Like

Perfect. Thk

1 Like

Tutorial Bookmarked. Thanks so much all.