node tree

output

I have a node setup which allows me to retrieve the vertex locations of an icosphere and position instanced cubes at those locations.

The Object Transforms Output node has sockets that say location and rotation, when I plug in the vertex locations from the Object Mesh Data node the socket changes from location to locations, as does the socket that said object changes to objects which I believe is because its a vecorized socket.

Why can I not plug in the vertex normals to the rotation socket? It is also transparent which makes me think its vectorized, if I can't plug it in what needs to go inbetween and why?

up vote 1 down vote accepted

Vertex normals are vectors (transparent blue) and Rotation of object is in 'Euler' format (transparent purple). So, you have to first convert Vertex Normals Vectors to Euler then you can plug into the rotation socket. There are two nodes in animation nodes which can do this, 'Vector to Euler' node and 'Direction to rotation' node. However, 'Direction to rotation' node has many controls so you can choose 'guide axis (here is 'x')' and 'track axis (here is 'z')'.

Vector to Euler Node enter image description here

Direction to Rotation Node

enter image description here

:)

  • Different coloured sockets, thanks for the tip! – Neil Oct 11 at 10:36

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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