Rotating an object to align with world space

   3604   1   0
User Avatar
Member
3 posts
Joined: 6月 2017
Offline
Hello, I'm trying to move an object into world space 0, perform actions to it and move it back to the original position and rotation. Now, translating it is easy enough, but is there a way of finding the objects orientation (without the original transform data) and rotating it to face along an axis? I just cannot think of how I would manage it.

Thanks in advance,
Ed
User Avatar
Member
9 posts
Joined: 7月 2014
Offline
If you can create an orthogonal frame by two vectors (i.e. find three points orthogonal to each other) you can create an orient attribute. inverting orient attribute and rotating @P by this inverse orient gets you world rotation
https://sergeneren.com/ [sergeneren.com]
  • Quick Links