johnchuang
10-17-2007, 02:31 PM
hey guys! I'm new to mel.I'm writing a simple script to reposition obj's pivot(mainly the rotatePivot),but every time I try to snap the pivot ,the object itself moved.That's really frustrating! Any one can help me out?
// for example I want to snap object A'rotatePivot to the position of B
// I use some thing like:
move -ws $APos[0] $APos[1] $APos[2] B.rotatePivot;
// instantly A itself jumps to B'position
// I just want to move A's Pivot ,not itself.
what commands should I use? or any other methods? Any suggestion is welcomed!
// for example I want to snap object A'rotatePivot to the position of B
// I use some thing like:
move -ws $APos[0] $APos[1] $APos[2] B.rotatePivot;
// instantly A itself jumps to B'position
// I just want to move A's Pivot ,not itself.
what commands should I use? or any other methods? Any suggestion is welcomed!
