Do you need to use a mel script for this? Maya makes this fairly easy to do. Select the item you want to move first, then select the item you want it to move to. Then in the Channel Box, select the translate X value and hit tab 3 times. In case you want MEL anyway: {<br> string $sel[] = `ls -sl`;<br> int $arrSize =…
string $sel[] = `ls -selection`; float $m[] = `xform -ws -q -t $sel[1]`; I have two objects. I want to copy the translation coordinates of one object to other. In above mentioned code, I would store the translation coordinates of second object in $m[]. How can I tranfer it to first object? Basically to $sel[0]. HELP!!!