Like the picture shown, I have some object properties in RhinoDoc.
Display Color
Linetype
Print Width
But once I reference this curve to Grasshopper, these properties didn’t follow along(or maybe I don’t know how to access). How can I access these properties in GH?
ideal scenario will be …
Once reference the curve in GH and bake it into Rhino, it still has these properties.
Good morning @JimYuan, once you reference that curve into GH it creates a copy of just the Geometry.
You’d have to collect the curve using Eelefront and a dedicated layer and Extract the properties that way.
I’m not too familiar with it but that didn’t give me all the ones you wanted, so I used the C# node and collected the Curve as a Rhino Object with all of its properties that way I hope this helps;
// The First Node
objects = Rhino.RhinoDoc.ActiveDoc.Objects.FindByLayer(layer);
// The Second Node
Rhino.DocObjects.RhinoObject robj = (Rhino.DocObjects.RhinoObject) objects;
A = robj;
B = robj.Attributes;
C = robj.Attributes.ObjectColor;
D = robj.Attributes.LinetypeIndex;
E = robj.Attributes.PlotWeight;