I’m working on a script that will create pipe segments along a cable tray. So far I’ve got it working for the horizontal parts, but the sloped parts are giving me some trouble. I use the Curve.Offset node to create a first curve along the side of the cable tray. After that I offset 4 more curves that will serve as the location for the creation of the pipes. The problem I’m facing are those 4 curves that sometimes offset in a Z-direction.
Is there a way to limit the direction of the curve offset so that they won’t be offset in a Z-direction? I know there’s a node in de springnodes that can do this, but I don’t know how to implement this in way that I’ll get a similar result as I’ve done with my Python script.
I’d have to figure out the perpendicular vector for every cable tray and than also make sure it points inward to the cable tray. I don’t know if that’s possible.