spoopo Posted September 26, 2015 Share Posted September 26, 2015 (edited) Hi guys how to make this kind of effect that one animated object rotate and another objcet rotate the same way . I can achieve this by using extract transform under the object level ,but how to do that under the sop level ? i have tried the attribreorient sop to make a quaternion attribute and then transfer it to the object i want to rotate,im using the maketransform node to make a matrix and multly the position ,this seems to work but the result is not accurate, am i missing something ? please help, thanks a lot. Edited September 29, 2015 by spoopo Quote Link to comment Share on other sites More sharing options...
anim Posted September 26, 2015 Share Posted September 26, 2015 if your "object" is rigidly deforming geo, then attribreorient should work, depending on the use but you can as well just create transform from 3 points of your geo and apply to new one however would be easier if you post your file as it really depends on your data, and it doesn't help that you are referring to sop geometry as objects since they can be packed prims, or other prims that contain transforms which would make things easy, or they can be just deforming polygons, when you may need to compute transform yourself, but in any case you would probably benefit more from fixed scene Quote Link to comment Share on other sites More sharing options...
spoopo Posted September 27, 2015 Author Share Posted September 27, 2015 Hi Tomas ,thanks for your reply ,please see the attached sceen file.I want to match one geometry's movement with another animated geometry perfectly. orient constraint.hipnc Quote Link to comment Share on other sites More sharing options...
anim Posted September 27, 2015 Share Posted September 27, 2015 quattovec is not producing euler rotation so plugging that to rot in makexform just gives you wrong values you need to convert quat to matrix ant then extract rotation from there which you can use orient constraint_fix.hipnc Quote Link to comment Share on other sites More sharing options...
spoopo Posted September 28, 2015 Author Share Posted September 28, 2015 quattovec is not producing euler rotation so plugging that to rot in makexform just gives you wrong values you need to convert quat to matrix ant then extract rotation from there which you can use Great! It works thank you so much for your help ! Quote Link to comment Share on other sites More sharing options...
bluciensky Posted September 28, 2015 Share Posted September 28, 2015 In case you don't know, there's also 'pointdeform' SOP that does everything for you I can't post a hipfile, but here's what you can do. (I am using Tomas's hipfile) Drop down Pointdeform SOP Plug 'color1' to input 1 Plug 'xform1' to input 2 plug 'xform2' to input 3 Quote Link to comment Share on other sites More sharing options...
spoopo Posted September 29, 2015 Author Share Posted September 29, 2015 In case you don't know, there's also 'pointdeform' SOP that does everything for you I can't post a hipfile, but here's what you can do. (I am using Tomas's hipfile) Drop down Pointdeform SOP Plug 'color1' to input 1 Plug 'xform1' to input 2 plug 'xform2' to input 3 Thanks Jeongyeon ,I 'll try it . 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.