How To Make A Source Go Forward Each Second And Reset Its Position When The Grid Is Deactivated

99 views
Skip to first unread message

Mathieu

unread,
Oct 6, 2014, 12:33:32 PM10/6/14
to ligh...@googlegroups.com
Use this formula for the source's x slider:

xtopercent(counter(0, grid.lastx, pulse(1), 0, grid.onactivated))

The source will go forward one step at each second. Modify the pulse(1) if you want it to go faster/slower.

If you don't want the source to start at position 0 each time, you can specify an offset like this:

xtopercent((counter(0, grid.lastx, pulse(1), 0, grid.onactivated) + 5) % (grid.lastx + 1))

where 5 is the starting position.

Cheers,
Mathieu
Reply all
Reply to author
Forward
0 new messages