Vector Line rotation

Hello !

I would like to rotate a vector line around one tip of this line ?
Rotate-Z do it but around the center of the line …

Thank you !

You can change the transformation origin by holding Cmd and dragging it…

Or enter new values for the origin in the info tab:

58

The transformation origin will be your rotation center.

Thank you very much !
And how could I set the Transform X & Y inside a JavaScript function ?
Is there any setter/getter to do that ?

Not really. I tried this, and it works.

Head HTML:

20

On click or whatever:

hypeDocument.getElementById("myVector").classList.add("changeTransformOrigin");

changeOrigin.zip (15.6 KB)

1 Like

Thank you : I will try this !