Anyone care to take a stab at or point me in the right direction as to how to make sequential lights on/off?
In this case, I have 7 lights that I want to turn on and off in a linear sequence. I can so it in Facer but I have tried in WFS and getting no where.
the Facer tag looks like this…
$(floor((#DWFSS#)/3)%7)=0?100:0$
DWFSS equivalent is WFS would be something like [SEC_MSEC]?
Thanks in advance!
1 Like
I’ve never used facer, and I can’t quite tell exactly what you need. But maybe experiment with setting fill opacity to something like 0 with this tag:
(floor([MSEC]/333)==1)?100:0
Tinker with the 333 and 1 to taste.
2 Likes
#DWFSS# is a smooth timer in Facer that counts 0 to 360 degrees to 14 decimal I think over 1 minute .
We actually have no smooth timers on WFS . Even MSEC has a 10 ms glitch at Zero
. I look to me that you cycle is 3.5 srconds . It is a bit early for me . You will have to do so juggery poker with a longer time than I second . So to you will have to use SEC_MSEC .
I can only help by making a test . You can use the UTC counter but you don’t want to go there .
So (([SEC_MSEC])*6) will give you the same number as #DWFSS# . With a different number of decimals . So you could substitute that into the Facer formula . Replace $$ with ( ) .
also as @Gondwana has shown replace = with == .
This works with UTC gives 7 ticks over 3.5 seconds .
(floor((([UTC_TS])/500)%7))
1 Like
Thanks! off I go tinkering!
1 Like
Nice! Thanks mate. If you want more instances (ticks) you’d just up the %*?
1 Like
Basicaly Yes . See that UTC / 500 is half second ticks . 1000 is one second ticks . Etc . Modulo gives you the the number of ticks in the cycle. Remember it starts at Zero . Then floor gives the result as an integer . Yippee .
1 Like
sample 100*sin([SEC_MSEC]*6.284)
2 Likes
Thanks @KOMKRIT That will be Smooth .