Animate Slider with a given time

Hi,

I would like to animate a slider from 0.50 to 1.00 and that should take 8,5 seconds and then back to 0.50 in another 8,5 seconds. I don’t want to take screenshots, I just want to let the slider run to animate it in the Rhino Viewport.

Does anyone know how to do that?

Best,
Clemens

forum_ticker.gh (4.7 KB)
ticker

Elegance aside, this should do it
170ms is 8.5 seconds / 50, from 0.5 to 1
You may need to set lower or upper one step further to accommodate a floating point error. Seen in the gif 1.00 is actually set to 1.01

4 Likes

Thanks @Will_Wang ! That helps!

@Will_Wang I have one other “issue”. I would like to control the duration with a slider. So if I want to change the 8.5 seconds. to 40 seconds for example. Would it be possible to implement that?

you can change the trigger interval
40s / 50 = 800ms

1 Like

Thank you, @Will_Wang but I can’t have it as a separate slider to control it as a trigger has no input?

when i get time i may be able to write that in.

1 Like

Thanks @Will_Wang That would be a great help!