Grasshopper/python - reference objects dynamically/load all objects

Dear all,

Could someone help me writing a part of a python script inside grasshopper?

I would like to load all text data from a file - annotations, leaders, object names, text objects etc. into a script.

Why?
I would like then extract text from it (leaving special text fields like "%<ObjectName(“bd37e2d8-9a8b-4254-99f6-b3e30c8b9e7d”)>%") along with its GUID. This way I can export everything to an excel file for further check/translation and other tasks (filtering, checking consistency among all layouts etc.).
Final step would be to load back in the modified data and reassign it to the objects by following its GUID.

Anyone?

PS: I tried rhinoscriptsyntax, but obviously it doesn’t work in GH
PS2: Yes, there are elefront and human plugins, but I would like to keep everything inside a script
PS3: I will share the end result of course.

It works just fine, but you might need to set the script context to the Rhino document:

It would probably also help to provide more specific information/requirements, and a test file to work with :slight_smile:

2 Likes

It works! You are a life-saver!

1 Like

Haha, no worries. Glad it was such a simple fix.

1 Like