Search - User list
Full Version: "SOLVED" Trying to invert while sweeping along a curve?
Root » Technical Discussion » "SOLVED" Trying to invert while sweeping along a curve?
Getyamamout
Hi I am trying to do some hairpin motor windings that involves sweeping a rectangle around rounded hollow tube. as it needs to be procedurally changed it is not practical to use a roll ramp before the sweep.

My problem is I have normals on the curve that I have tried to convert into my up vector but I still have strange twisting no matter what I try?

I have a preview of what I am trying to achieve




I found using the roll ramp very hard to get right and be totally accurate each time the windings changed

wanted up vector



twisted results?
tamte
you can provide standard instancing attributes along your points like N + up or orient, etc.. to have full control

you can also specify start and end up-vector in the Construction/Up Vectors tab, if that's enough
tamte
ah, now I see all the pictures, if you want to create up from N use Attribute Rename or Attribute Swap node, not Attribute Promote

so rename your N to up
and create new tangential N using Orient Along Curve
Getyamamout
Hay Tamte I thought that is what I was doing by promoting the normal to be "up" then adding a polyframe to get the curve normals?
Getyamamout
yer had an issue with the pic's at the start will try the rename thanks
tamte
Getyamamout
Hay Tamte I thought that is what I was doing by promoting the normal to be "up" then adding a polyframe to get the curve normals?
middle click in the Attribute Promote, you will see the warning that no promotion is done
Attrib Promote is to promote attribute among different classes (Point, Vertex, ...) or to pieces of the same class

also you can always attach a visualizer to your attribute to see how it looks, in your case visualize N and up to make sure they are what you expect before Sweep
Getyamamout
Hay Tamte the attribswap with a polyframe was the answer
Getyamamout
Thanks Tamte
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB