I’ve built a blended surface and projected lines onto it in a varying grid pattern and want to sweep different profiles across them.
I’ve built the script and the sweep works on some of them, but seems to randomly rotate others.
I’ve tried flipping Dir etc, rebuilding the surface etc but to no avail.
I’m fairly new so help would be appreciated.
Thank you so much for taking the time to reply.
Ah sorry I didn’t attach. I’ve attached now!
Could you please have a look at that?
I’m testing with a regular rectangular profile just for the script to run, but I will likely want to draw a very different shape and run that which won’t need to be generated from grasshopper like you have done.
I rebuilt from your photo…seemed to work in the preview but it also threw out a few errors…should I be concerned?
Some of the lines were still reversed so I manually flipped them and also seemed like one of the lines wouldn’t sweep.
Think I can work with this but let me know if you have any other thoughts!!
It just barely works, comparing Z values of start/end points to choose either the original rail curve or a flipped copy of it. Complicating things further is the fact that some of these rails near the middle have vertical ends which result in horizontal pFrames that may not be affected by Align Plane with a Z vector ‘D’ input. Honestly, it was trial and error and is probably fragile, easily broken by slight changes to the geometry.