How to update sticky inside Cluster

Hi Toni, this is more of an alternative solution, which may fit your needs better:

I’ve recently switched from using the Rhino runtime sticky when requiring global variables across one Grasshopper definition. To instead writing and reading persistent data directly to the Grasshopper file ValueTable. This has the added benefit of actually “sticking” between sessions. And can thus be used to e.g. remember baked objects, element tracking across Grasshopper/Revit. Here’s a quick GHPython example, using the standard json module to pack/unpack the data (i.e. you can have a JSON database hidden in there): (3.1 KB)

1 Like