Animate in real time

Timers are notoriously unreliable in Grasshopper. I used a Python hack from here:

And assumed 30 frames per second.


animate_2022Sep21a.gh (13.8 KB)

P.S. Changed FPS (frames per second) from 30 to 15 with timer interval at 33 milliseconds, which looks more accurate (real time) on my machine. Your mileage may vary… Also added CullPt (Cull Duplicates) to eliminate duplicate “frames” (points) where the segments meet.


animate_2022Sep21b.gh (14.7 KB)

NOTE: Stop the timer before quitting Rhino to avoid an error!

1 Like