Hello Aren, Maybe you want to try using the flags -a for aboslute and -ws for worldspace in your move command, for example:
import maya.cmds as mc sphere = 'pSphere1' mc.move(0,10,0, sphere, a=1, ws=1) # this should move your sphere to 0,10,0 in worldspace Cheers! Eduardo On Mon, Mar 3, 2014 at 1:39 PM, Aren Voorhees <[email protected]> wrote: > Hi there, > > I am looking for a way to move an object to a specific location in world > space. I tried this with xform() and move(), but so far I can only figure > out how to move objects a certain number of units from where it currently > is. Instead, I want to move the object TO a specific place, regardless of > where it is currently. > > For example, say I have an object somewhere in the world with it's > transformations frozen and I want to to move it to, say exactly [10,0,0]. > If anyone could give me a nudge in the right direction, I'd really > appreciate it! > > Thanks, > Aren > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/0018130d-44ac-417b-bba8-92444fe0fbc4%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Eduardo GraƱa www.eduardograna.com.ar -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CACt6GrnQn_XN%3DqKOt0HCrki4p4nVuEXovskGzbhQvmxkE80fmg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
