query world coords
Hey,
Can anyone help me figure out how to query the world space transform and rotational values of an object? I've looked all through the docs and just can't find it. Pivot points no problem, but I need rotation as well so that doesn't help me. Thanks a bunch. -tarmy |
Use xform...
you can either store it in a float array or a vector like so.. /////////////////////// vector $translates = `xform -query -worldSpace -t name of object`; /////////////////////// you can replace the t with an r for rotates. Chris |
:beer:
exactly right. much obliged. (fyi... the rotate flag is -rt, but you got me close enough and I appreciate your help) |
Yeah xforms the first port of call when doing anything to do with translations/rotiations
|
All times are GMT. The time now is 09:40 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018