I want to add to “t” parameter every time the trigger component runs in grasshopper. I used to do this:
anyone has any idea how to make it happen?
Hi Mohammed
If you switch Mode to GH_Component SDK Mode you can keep values in global variables. See the screenshot below. In Procedural mode the script will reset your t variable on every run.
https://discourse.mcneel.com/search?expanded=true&q=python%20counter%20%40Joseph_Oster
To avoid the conflict between multiple timers, I have reverted to an updated version of the Python counter I posted before.
[counter_2020Mar4a]
counter_2020Mar4a.gh (7.9 KB)
Just two little problems observed so far…
If you close the model and reopen it without quitting Rhino, the timers restart with their “sticky” values instead of zero.
If you close Rhino without closing the GH model first, the following error message appears, apparently because the timer makes Rhino believe the GH model h…
Despite the thread title, this is Python.