PDA

View Full Version : world co-ordinates?


Rainroom
06-27-2007, 08:11 AM
Is there anyway I can know the world-space co-ordinates of a cv of a curve? It always gives output as the local co-ord of the cv. If I move the curve around the cv's co-ords do not change. I know I can substract translation of the curve from the local co-ord of the cv to get the result. But is there a one step command for that?

Also can I get the rotation and translation attributes of objects as inputs in MEL?

shinyprem
06-27-2007, 08:42 AM
Hi.. !

To query the cv position in world space the command is

xform -q -ws -rp "curve1.cv
";

You can query the transform of the object by

getAttr curve1.ty;

and use as a input in your mel.

Rgds,

CGTalk Moderation
06-27-2007, 08:42 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.