PDA

View Full Version : How to match the pivot?


chandro
02-22-2008, 07:59 PM
ive tried using the mel script in highend
http://www.highend3d.com/maya/downloads/mel_scripts/modeling/misc/pivotMatcher-2672.html
it does match the pivot location but not orientation
is there a newer script like this?

BenBarker
02-22-2008, 10:38 PM
In python I use:

import maya.cmds as mCmds
mCmds.xform("Object", ws = True , m = (mCmds.xform("Target" , q = True, ws = True, m = True))

You can do the same thing in MEL, with a few more lines.

chandro
02-23-2008, 04:21 AM
Thanks BenBarker, how does his script work? im really a newbie :-)

CGTalk Moderation
02-23-2008, 04:21 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.