generative modeling for Rhino


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
Permalink Reply by Evan Chakroff on January 30, 2013 at 8:59pm David - is there a way for this script to reference the layer color, rather than the individual object color?
Permalink Reply by Evan Chakroff on January 30, 2013 at 11:02pm nevermind - found a component in Horster that does exactly what I need.... http://www.grasshopper3d.com/group/horster-tools
Added by David Stasiuk 8 Comments 21 Likes
Added by stefano 5 Comments 7 Likes
© 2013 Created by Scott Davidson.
Powered by