Move lines in direction

Hello
How do i move these lines with a number slider in the shown directions?
Hope you can help.

Hi,

You can for instance do this:

The cross product between the world z-axis and line tangent vector gives you a normal vector perpendicular to the line, which then can used to move it.

move_lines.gh (6.1 KB)

Thank you for your answer! I tried to implement the code, but it’s not working exactly as i want…
Initial state:



Changed state:

I would like to make them move away from each other.

This solution might not be 100% fool proof, however it should work for your case.

Note that the curves not always moving in the same direction, is due to their direction, which defines their tangent vector, and thus plays a role in the search for the normal vector.

move_lines_2.gh (12.1 KB)