Use trigger component to move slider

Is it possible to use the trigger component to move a slider by 1.00 every 1 second, from 0 to 100? I cannot find a clear example of this being used.

Maybe a script component works better , here is a example python code :

import time

def print_range_with_delay(start, end):
for number in range(start, end + 1):
print(number)
time.sleep(1)

Example usage: print numbers from 1 to 5 with a 1-second delay

print_range_with_delay(1, 5)

If you want to use it in grasshopper , you can give start and end from number sliders or …

I guess I’m a little surprised that there doesn’t seem to be an easy way to do this without making a custom script.

If the time is not so relevant, you may also right click the slider and use the animate option.

You might use/modify one of these solutions:

This is how I figured it out. No scripting needed. Set the record limit to whatever maximum value you want it to go to.

1 Like

Nice solution

1 Like