GHPython: How to check if an attached Timer is running?


Is it possible for a GHPython component to check, if a hooked up Timer is currently running/recomputing the component itself, or not?

If so, would it also be possible to keep track, at which refresh iteration the component currently is?


It probably would be (by iterating the canvas components etc), but I suspect a simpler solution is to implement your own “timer” within the GHPython code itself. Here’s a basic example: (3.2 KB)


Wow, very nice! Thank you, @AndersDeleuran. :smiley:

1 Like