Notifications
Clear all

[Closed] matching transforms

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.

3 Replies
 JHN

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

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

$a.pos.x = $a.pos.x
$a.pos.controller[1].value = $b.pos.controller[1].value