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
col = obj.Attributes.ObjectColor
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