Pipe and loft kinks / orientation errors


I have this simple script that I want to use to pipe some curves that I’ve projected onto a mesh, but the script seems to be causing “kinks” in the pipes,

not sure what’s causing it and the same thing happens when I try to use pipe.
Do I need to use rebuild curve or something like that?

File and Script that I’m usingpipe script.gh (4.0 KB)
Mesh and curves.3dm (331.0 KB)

Right-click on the O (Options) input to the Loft component, select Loft Options…, and enable Align sections.

-Kevin

worked perfectly, thanks a ton!