Is there any expression I can use to count to a number and then back? Let’s say I want to rotate a sphere to 180° and then back to zero.

Using an LFO could solve this but wanted to know if I can simplify it by using only an expression.

Thanks

Is there any expression I can use to count to a number and then back? Let’s say I want to rotate a sphere to 180° and then back to zero.

Using an LFO could solve this but wanted to know if I can simplify it by using only an expression.

Thanks

1 Like

Try using a limit chop, and the loop and/or zigzag parameters. In a python expression you can use something like math.sin(me.time.seconds) or math.sin(absTime.seconds). Multiplying the seconds changes speed, adding to the seconds changes phase, multiplying everything changes the range , and adding to the end changes the offset of the ‘lfo’.

1 Like

Will try, thank you!

1 Like