Actually it is possible to do that in a single process. transmat = cmds.xform(objTarget, q=True, matrix=True, ws=True) cmds.xform(objTrans, matrix=transmat)
It will carry all information in the transform matrix to the target. Cheers, On Tue, Dec 2, 2014 at 9:15 PM, Emilio Hernandez <emi...@e-roja.com> wrote: > Or... Write a script. > > Python Tab > ----------------------------------------------------- > import maya.cmds as cmds > > selected = cmds.ls (selection=True) > > objTrans =selected[0] > objTarget = selected[1] > > trans = cmds.xform (objTarget, q=True, t=True, ws=True) > rotation = cmds.xform (objTarget, q=True, ro=True, ws=True) > cmds.xform (objTrans, t=trans, ro=rotation) > ----------------------------------------------------------- > > Select first the object to transform. > Select second the target object. > > run the script or add it as a button. > > > > ------------------------------------------------------- > Emilio Hernández VFX & 3D animation. > > On Tue, Dec 2, 2014 at 5:15 AM, <mikael.petter...@gmail.com> wrote: > >> You can select two objects and then tab through the values in the >> channel box and they will match up >> >> /Mikael >> >> *Från:* Cristobal Infante <cgc...@gmail.com> >> *Skickat:* tisdag den 2 december 2014 10:30 >> *Till:* softimage@listproc.autodesk.com >> >> Can somebody please tell what is the best way of matching transforms in >> Maya? >> >> I've been using Align Objects, but it doesn't match two objects based on >> their pivot like in xsi. >> >> Any ideas? >> >> C >> > > -- Daniel Harjanto Infinite Frameworks Studios TD http://misterdi.cgpot.com