algorithmic modeling for Rhino
Tags:
You're using the new SDK (RhinoCommon) whereas the example I posted way back then used the old SDK (Rhino_DotNET). Functions, classes and properties have all changed. I attached a file with updated code, but this is what it looks like:
Dim obj As Rhino.DocObjects.RhinoObject = doc.Objects.Find(id)
If (obj Is Nothing) Then
col = Color.Transparent
Else
col = obj.Attributes.ObjectColor
End If
--
David Rutten
david@mcneel.com
Poprad, Slovakia
David - is there a way for this script to reference the layer color, rather than the individual object color?
nevermind - found a component in Horster that does exactly what I need.... http://www.grasshopper3d.com/group/horster-tools
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by