algorithmic modeling for Rhino
Tags:
usually baking components incorporate a boolean input, so that the component only bakes when the value is true. If your boolean input is called bake:
if bake Then
Dim lay_index As Int32 = doc.Layers.Find(lay, True)
If (lay_index < 0) Then
lay_index = RhinoDoc.ActiveDoc.Layers.Add("myLayer6", Drawing.Color.Blue)
End If
Dim att As New DocObjects.ObjectAttributes()
att.LayerIndex = lay_index
A = doc.Objects.AddBrep(x, att)
End If
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by