Hello,
If I have some geometry, say a box, which is at a random rotation and position, how do I return that box to the origin with rotation of 0,0,0?
Thanks!
newbie rotation question
3237 7 1- pip31
- Member
- 17 posts
- Joined: July 2012
- Offline
- AdamT
- Member
- 184 posts
- Joined: June 2010
- Offline
Assuming your box is inside a geometry context (I.e. obj/box/), you'd use a Transform SOP node.
If you haven't already, I'd suggest playing through the First Steps tutorials as they'll save you a lot of question marks
Edit: Looking at your previous posts you seem to have covered a lot of ground already..maybe I misunderstood your question?
If you haven't already, I'd suggest playing through the First Steps tutorials as they'll save you a lot of question marks
Edit: Looking at your previous posts you seem to have covered a lot of ground already..maybe I misunderstood your question?
Edited by - Sept. 9, 2013 17:12:12
- pip31
- Member
- 17 posts
- Joined: July 2012
- Offline
- AdamT
- Member
- 184 posts
- Joined: June 2010
- Offline
- pip31
- Member
- 17 posts
- Joined: July 2012
- Offline
- AdamT
- Member
- 184 posts
- Joined: June 2010
- Offline
Yeah slightly trickier… How is the geo being transformed randomly? If it's through an expression or script you could pass the transform history into vector attributes, and use that to get your inverse transform later on.
The only other way I can think of off the top of my head is to group a couple of points (or 3) early on, and use those as a reference to restore the position and orientation - I'd do this in Python, I should think it can be done easily in VOPs too. Maybe store just 1 point's xyz and normal as a transform stamp…too late to experiment now though.
The only other way I can think of off the top of my head is to group a couple of points (or 3) early on, and use those as a reference to restore the position and orientation - I'd do this in Python, I should think it can be done easily in VOPs too. Maybe store just 1 point's xyz and normal as a transform stamp…too late to experiment now though.
- chevita
- Member
- 122 posts
- Joined: Aug. 2013
- Offline
- AdamT
- Member
- 184 posts
- Joined: June 2010
- Offline
-
- Quick Links