Hi all
I know there are a few posts on this already but I cant quite find what I’m looking for, maybe someone can help.
What would the correct ghpython approach be, using RhinoCommon, to bake a hatch defined with the gh Model Hatch component?
Nothing I have tried seems to actually add anything to the rhino file.
Im not sure if I actually have to create the hatch in the script, but the component supplies an object of type hatch already…
Attached the gh script and below one of the code approaches I have tried:
import Rhino
active_doc = Rhino.RhinoDoc.ActiveDoc
for hatch in i_hatches:
attr = Rhino.DocObjects.ObjectAttributes()
active_doc.Objects.AddHatch(hatch, attr)
active_doc.Views.ActiveView.Redraw()
HatchBake.gh (9.9 KB)