Thank you Paul, much appreciated.

Do you think the approach I am taking is feasible or practical?

How do you guys go about it?

Dave



On Mon, Apr 12, 2010 at 1:55 AM, Paul Molodowitch <elron...@gmail.com>wrote:

> In a nutshell - yes, it's probably failing because cmds hasn't been
> properly initialized yet.
> The deal with maya.cmds is that's it's actually an empty module, whose
> contents are filled in during maya's initialization process.  That's
> why you were able to import it, but not call anything useful within
> it.
> To query your maya version even before maya.cmds has been populated, I
> recommend using MGlobal:
>
> from maya.OpenMaya import MGlobal
>
> apiVerNum = MGlobal.apiVersion()
> verString = MGlobal.mayaVersion()
>
> - Paul
>
> --
> http://groups.google.com/group/python_inside_maya
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to