0
$\begingroup$

I want to point the camera at an empty. I am close but not yet there. It keeps moving a roll movement. How can I get rid of that?

enter image description here

$\endgroup$
0
2
$\begingroup$

enter image description here

The second line with "X Y Z" of the "direction to rotation" node is to indicate which axis of the object is to keep to the direction indicated in the "guide" vector in the bottom part of the node.

Here we have Z=1 (up) as guide so using Y will align to Z.

A complement: using this guide you can also plug the target's rotation as guide. This will give the following effect (note that AN is clever enough to automatically convert the rotation as a direction, adding another "rotation to direction" node):

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.