I want to increase to a number every time the trigger component runs

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

Despite the thread title, this is Python.