Message 1 of 2
How to save an object's transforms relative to another object?

Not applicable
03-03-2015
04:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In mel, how would you save object x's transform data (translation and rotation) relative to another object y, and put this into a variable?
In maxscript, I could get this relationship by:
matrix = x.transform * inverse y.transform
Then:
z.transform = matrix * y.transform
Obj z would snap to the translation and rotation of x relative to y.
It is not clear how to do this in mel, using the xform, getAttr or setAttr commands. Does anybody know how?
Thanks!