PDA

View Full Version : How to snap rotatePivot without changing object's position?


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!

r4inm4ker
10-18-2007, 05:13 AM
use "xform"

i.e. xform -rp 1 0 0 pSphere1

johnchuang
10-18-2007, 05:38 AM
hi Jeff, Thanks a lot!



多謝!:)

CGTalk Moderation
10-18-2007, 05:38 AM
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.