there is also maya.OpenMaya.MGlobal.mayaState() which provides even more granular info. it will return kInteractive in GUI, kLibraryApp in mayapy (after maya has been initialized), and kBatch in batch mode (i.e maya -prompt or maya -batch). you have to be careful about the second one though, because in mayapy it will return kInteractive before maya has been initialized.
-chad -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
