I’m using a display component, (Display->Dimensions->Pattern Hatch) without any out gate:
I assume there is a field that contains the values of this component (in this case, lines) which can be accessed via code.
I prefer to use python and I tried to explore this component:
import rhinoscriptsyntax as rs
import Rhino as rh
import inspect
ghdoc = ghenv.Component.Attributes.Owner.OnPingDocument()
rhdoc = rh.RhinoDoc.ActiveDoc
hatch = [x for x in ghdoc.Objects if x.NickName == "PHatch"]
for prop in inspect.getmembers(type(hatch[-1]), lambda a:not(inspect.isroutine(a))):
print(prop)
for attr in inspect.getmembers(type(hatch[-1].Attributes), lambda a:not(inspect.isroutine(a))):
print(attr)
without any success to find the correct attribute and getting the content itself.
@anon39580149 No, I don’t want to bake them. I want to manipulate them inside a python component before baking.
I don’t think I got you - recreate new hatch how?
I assume it must be a way to get the content of a display component directly although there is no output channel, since these curves exist somewhere. Don’t you think so?
It’s hard to explain why I need them because it’s a huge project.
Maybe I’m not clear enough, I’ll try again - how can I get the pattern (the curves inside the bounderies) itself as curve/line objects?
In your gh file, for example, these curves:
I don’t need the hatch as an object or the input parameters (since I’m the one how feed them into the display component).
I’ll really appreciate that if you can find an answer.
Maybe I didn’t understood you correctly but by “explode it in Grasshopper” you actually meant that I can get the curves inside the boundaries? same as baking to rhino->explode in rhino->select the curves in Grasshopper?