PDA

View Full Version : matching transforms


furystylee
12-17-2008, 09:28 PM
Through maxscript, how can I have one object's specific transformations match another?

For example if object A is translated on X, I'd like object B to match the same translation.

Thanks.

JHN
12-17-2008, 10:07 PM
I'm not very clear on what you exactly want, but you can easily copy a transform from 1 object to another with for example obj1.transform = obj2.transform.. but I have the feeling this is not what you mean...?

-Johan

furystylee
12-17-2008, 10:26 PM
Yes that's the concept I'm looking for.

Does maxscript have extensions for transforms (like MEL script has ".tx" ".rz" etc)?

I guess I'm looking for the exact maxscript syntax like maybe:

$boxB.rx = $boxA.rx

Thanks

eek
12-17-2008, 11:06 PM
$a.pos.x = $a.pos.x
$a.pos.controller[1].value = $b.pos.controller[1].value

CGTalk Moderation
12-17-2008, 11:06 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.