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

Hi,

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?

Thanks.

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:

181207_GHPython_DynamicCounter_00.gh (3.2 KB)

2 Likes

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

1 Like