Hello, I’m currently working on window openings, and I don’t understand why it doesn’t work when I try to do it with multiple ones, whereas with just one, it works perfectly fine. I can’t figure out what I might be missing in Grasshopper. If you spot any issues in the script, please don’t hesitate to let me know! Grasshopper#ScriptHelp
You’re having some real trouble with the data structure… When there are multiple curves, for example 3, the curves are in paths 0, 1 and 2. Exploding the curves into the segments adds a path. The segments of the first curve are in path 0;0 and so on. Data streams need to match, otherwise Grasshopper does not know what to do. I’m not sure what you are trying to do with these lofts but simply plugging the two inputs into the C input does not work. Look at the data structure. There are two sets of paths which do not match. 0;0 does not match 0;0;0… You can fix this by using a match tree component. I’d also suggest using merge components to bring multiple inputs together instead of plugging in everything into the loft component. It’s easier to change should something fail and paths can be manipulated separately.
I drew three rectangles and looking at the number inputs in your definition I think you work in meters. The extrude component seems to have a problem with very small inputs (0.05 or so) which I think is a bug. My brain works in millimeters so I scaled everything accordingly.
There are other things which you can improve in the definition: For example the division of the curves into 3 columns. I’d do this with the divide domain component. I wouldn’t turn the surface into a mesh just for this.