peship Posted March 6, 2006 Share Posted March 6, 2006 NULL2 is parented under NULL1, then NULL1 is moved somewhere in the space, rotated and scaled. Another transform - NULL3 - is moved somewhere in the space. How can i match the position of NULL2 to NULL3 ? Basicly my question is how to read/edit the world matrix of NULL2 ? The solution must be only through hscript/expressions. Thanks. Quote Link to comment Share on other sites More sharing options...
edward Posted March 6, 2006 Share Posted March 6, 2006 What about opparm'ing the result of vtorigin("NULL1","NULL3") onto NULL2? Or more generally: vtorigin(opinputpath("NULL2",0),"NULL3") Quote Link to comment Share on other sites More sharing options...
peship Posted March 6, 2006 Author Share Posted March 6, 2006 let me try Quote Link to comment Share on other sites More sharing options...
peship Posted March 6, 2006 Author Share Posted March 6, 2006 ok, that was easy. thanks. Quote Link to comment Share on other sites More sharing options...
deecue Posted March 7, 2006 Share Posted March 7, 2006 or you could use a fetch.. Quote Link to comment Share on other sites More sharing options...
Jason Posted March 7, 2006 Share Posted March 7, 2006 or you could use a fetch.. 25446[/snapback] I think he was asking for an expressions solution only Quote Link to comment Share on other sites More sharing options...
deecue Posted March 7, 2006 Share Posted March 7, 2006 hey look at that sorry peship, totally disregarded that part of it.. thanks for pointing that out jason.. Quote Link to comment Share on other sites More sharing options...
peship Posted March 7, 2006 Author Share Posted March 7, 2006 actually first i looked at any solution allowing me to directly edit the transformation matrices. then i tried the *origin expressions, but they didn't worked. the reason for that was that i had hierarchy with several objects and all the time i tried to use the root one in the vtorigin expression - vtorigin("rootObject","whateverObject"), instead of vtorigin("theOneAbove","object"). after edward replied me, i figured out my mistake somehow. The implicit way provided by the *origin expressions is good enough. thanks. Quote Link to comment Share on other sites More sharing options...
edward Posted March 8, 2006 Share Posted March 8, 2006 Note (as mentioned in the help) that you can just use the empty string, "" as your first argument to retrieve the transforms in world space. 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.