Cain&Able Posted October 7, 2016 Share Posted October 7, 2016 Hi, I'm creating a rotation matrix to be transferred to a point as an orient attribute and then hoping to align a new object with a copy sop and this newly created orient attribute to match the original objects orientation. I have to eventually loop it, but for now just trying it on one object. Any ideas? Test_Orient.hip Quote Link to comment Share on other sites More sharing options...
Navneet Arora Posted October 10, 2016 Share Posted October 10, 2016 You can re-construct orient using up and N attribute and then feeding them into lookat vop node to create a matrix and then converting to quaternion and finally exporting it as orient attrib. Quote Link to comment Share on other sites More sharing options...
Cain&Able Posted October 10, 2016 Author Share Posted October 10, 2016 That's what I've done in the example, but for some reason it's still not orienting properly. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted October 10, 2016 Share Posted October 10, 2016 like this? Quote Link to comment Share on other sites More sharing options...
Cain&Able Posted October 10, 2016 Author Share Posted October 10, 2016 Thanks, solved it with lookat matrix3 m = lookat(pos1, pos2, y); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.