Sweep direction in relation to perp frame

example 1 which is what I want, where the swepe shape is aligned to the bottom of the rail

example 2 I selected another set of curves but then the frame make the sweep shape align to its right side, but I want to preserve the alignment to the buttom of the rail like the previous example

I can’t quite figure out how to make the sweep follow a universal direction as I want to input these settings into HumanUI to allow the user to select any curve in their project and do a sweep from pre-set shapes.

Sweep example.gh (15.3 KB)

TTToolbox plugin has a sweep feature which seems to have the universal recognition of a sweep regardless of the curve but I want to be able to use my own shapes to sweep, and I believe that TTT doesn’t allow for that.

any thoughts?

Thanks :slight_smile:

I guess you can align the perp frame plane with world_Z axis first:

this way, when you move the circle along reversed_plane_X_axis it will always move coherently with -Z (unless you have an XY Plane… but that’s another story)

Sweep example_inno.gh (18.6 KB)

1 Like

The problem I have when running your version of the script is that the sweep shape does not maintain its position across the rail as you can see from the plan view

Ignore my previous comment, that was more of a problem with my path than the script. Thanks so much for the help, the direction now works great!

1 Like