Hi all,
I am trying let Ghpython print out all the selected objects’ layername. I can do it in rhinopython but cannot do the same thing in GhPython, does anyone know why? Did it miss something very basic?
Many thanks,
If you load the objects into grasshopper, they become part of the grasshopper document, and will not have the attributes attached to it. Basically it’s the same as doing a rs.coercerhinoobject() in Rhino Python.
Also read the error message: if you want to do something with the doc objects, you need to set the context to the Rhino doc.