Hi Karls, it helps with debugging if you provide an example of what didn’t work. Anywho, one really doesn’t need sticky
to make persistent variables in GHPython (and if one does use it, it’s probably best to append the component guid onto the variable key name in the sticky
to prevent unexpected behaviours). Here’s a simple implementation using the if "foo" not in globals()
method:
200301_GHPythonCounter_NoSticky_00.gh (3.2 KB)
If you need a dynamic counter, have a look at this implementation: