I’m creating a python script component, and I’d like the script to be “self-aware” of its own Instance Guid so that I can have different instances behave differently. Is there a way to do this?
Thanks,
Ben
Rhino: Version 5 SR14 64-bit
GH: Build 0.9.0076
ghenv.Component.InstanceGuid
should do it:
Thanks! This is perfect.
Is there documentation somewhere of ghenv and its attributes?
I think I remember @piac writing a post about ghenv
either here on discourse, on the old Grasshopper3D forum, or on developer.rhino3d.com. Think being the operative word there
Edit: This post, also has a lot of other very useful information: