>>> is running in standalone mode or interactive mode?
use about command ...
in python
if cmds.about(batch=True):
print "I am running in standalone mode"
On Fri, Mar 4, 2011 at 6:07 PM, pro <[email protected]> wrote:
> Hey folks-
>
> I want to access the value of a maya global variable through mel. This
> variable can be accessed as:
> MGlobal::mayaState in c++ and
> maya.OpenMaya.MGlobal.mayaState() in python.
>
> Could someone tell me how to access this variable in mel?
>
> Alternatively, is there a way in mel to detect if a script/expression
> is running in standalone mode or interactive mode?
>
> Thanks,
> -pro
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
--:: Kurian ::--
--
http://groups.google.com/group/python_inside_maya