Store a value in the Rhino file


#1

Hi, I need to make a script that stores a value in the Rhino files, what would be the best way to do so? And I would need to check IF that value is present.

I would like it to act like a file dependent “sticky value”.
For inspiration see Python equivalent for VBS Private to store variables for a session


#2

Hi Jørgen,

The simplest might be with rs.SetDocumentData() and rs.GetDocumentData()… See the Python rhinoscriptsyntax help for more details…

Edit: (that is if your ‘value’ can be stored as a string…)

Cheers, --Mitch


#3

Perfect! Thanks!