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.
