Made some random vector going in either x or y direction plus constant z increments Made it pass through a loop and used a 'start/end/step' line generator to make location for the steps

how can i get the rotation between each vector to rotate the steps along the path

Red dots are the main turning point vectors & white dots are the steps



1 Answer 1


We will get this info by using the atan2() math function. We will use the x and y coordinates of your line starts and end.

In the loop where you initialize your line meshes, add a new parameter of type "Euler List". Disable the input and enable the output. Add a "Reassign" node on the right of your loop.

enter image description here

On the right, set this up :

enter image description here So, we are getting the y Delta between the two points, then the x Delta. By using arctan2 we can get the angle on the x,y plane in radians.

We combine this angle into an Euler object with an equivalent rotation around Z axis, and add 90 degrees to it so the steps face the right direction.

We then fill a list with the same number of elements as we have steps. We then combine it with the previous list so that each vertex, and consequently each step, is associated with an angle.

Finally change your setup to accept the euler rotations. Don't forget to actually activate the rotations in the "Object Transforms Output" node.

enter image description here

Result (with a solidify modifier) :

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .