View Full Version : World Coordinate Access Problem
Amaan 05-14-2002, 12:57 PM Hi
I have a leg heirarchy, and the ankle joint is giving me coordinates relative to the hip joint (the parent). I want to get access to the world coordinates of the ankle joint through expressions and make them equal to another object's coordinates that is outside the leg heirarchy.
how do I do it? :)
thanks,
|
|
svenip
05-14-2002, 02:02 PM
mel command : move -ws will move it in worldspace.
with xform -q -ws you can get the worldspace of one object. without the -q you can manipulate it (maybe better then move)
Amaan
05-14-2002, 03:03 PM
hey thanks for the quick reply svenip :)
i think it is possible to mix mel scripts with regular expressions. I have 3 variables declared that contains the ws values that the sub-object in the heirarchy should be assigned. will the following command work?
xform -t -ws $xValue_ws $yValue_ws $zValue_ws
and how do I specify which object the 'xform' is applying to? Coz the object that I need to reposition in ws will not be selected while the expression is being evaluated.
Amaan
svenip
05-14-2002, 03:25 PM
xform -t -ws $xValue_ws $yValue_ws $zValue_ws nameofyourObject;
Amaan
05-14-2002, 03:43 PM
hey thanks a bunch! you really know ur Maya I suppose!
CGTalk Moderation
01-13-2006, 06:00 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.