Re: [Maya2osg-users] Matrix exported does not obey units set in Maya
Status: Alpha
Brought to you by:
jtaibo
|
From: Jean-Sébastien G. <jea...@cm...> - 2011-10-17 20:12:36
|
Hi guys,
I come back to this question, because it's pretty important to us...
I would like to implement a way, when export starts, to set a global
multiplier that would scale things correctly (vertex arrays, transforms
mostly).
The problem is, in the C++ API, I have no idea how to get the current
units of the file / maya instance. In scripting I can do "currentUnit
-query -linear" and I get "m" or "cm" so I know what to do, but in the
C++ API I have no idea. I could add a setting in the GUI, but since this
information should already be available from maya, I'd prefer not to.
Can someone help with this? It would be cool if in the Mel command
reference there was a link to find the equivalent command in the C++ API...
Thanks,
J-S
--
______________________________________________________
Jean-Sébastien Guay jea...@cm...
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
|