PDA

View Full Version : world rotatePivot and moving vertex along local axis


Scorpi
09-17-2008, 08:33 PM
Hi! I know how to get rotatePivot value from object, but I don't know how to get world rotatePivot value that is in attribute editor (using Mel). I need this because I want to use polyMoveVertex to move some vertex thats are comonents of some object that is in hierarchy. I realize that, this move vertex along worlds axis, not local axis. I tried to use -ws flag and -lt but it's not working (-lt works like its moves along normals). My idea is to set -pivot flag to value from world rotatePivot. I don't know if that would work. If you have better idea or you know how to get world rotatePivot please help!

RyanT
09-19-2008, 12:44 AM
If your just trying to get the world rotation on a object do this:

string $obj = "yourNode";
xform -q -ws -rp $obj; //world position
xform -q -ws -os $obj; //world rotation

-RyanT

CGTalk Moderation
09-19-2008, 12:44 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.