XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : world co-ordinates?

06-27-2007, 07: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?

06-27-2007, 07: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.


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