Grasshopper GUID input

Hi @coffsoft, this is probably some old python 2 code which might not run anymore in Rhino 8.

GetSingleComponent is likely a custom function which justs iterates all gh doc components and returns the first component matching the name (or nickname). PersistentDataCount seems to be attribute or property of the found component. I don’t know if this name is still valid. The hasattr(data, “ReferenceID”) is a build in python function which does not need to be imported.

Yes, i guess it only works if the ids are Rhino object ids which must be assigned manually to eg. a Brep component.

_

c.