Package mrv :: Package maya :: Module util :: Class Mel
[hide private]
[frames] | no frames]

Class Mel

source code

    object --+    
             |    
util.Singleton --+
                 |
                Mel

This class is a necessity for calling mel scripts from python. It allows scripts to be called in a cleaner fashion, by automatically formatting python arguments into a string which is executed via maya.mel.eval().

Note: originated from pymel, added customizations

Instance Methods [hide private]
 
__getattr__(self, command)
Only for instances of this class - call methods directly as if they where attributes
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
call(command, *args)
Call a mel script , very simpilar to Mel.myscript( args )
source code
 
mprint(*args)
mel print command in case the python print command doesn't cut it.
source code
 
eval(command)
same as maya.mel eval
source code
 
_melprint(cmd, msg) source code

Inherited from util.Singleton: __new__

Class Variables [hide private]
  error = staticmethod(lambda* args: Mel._melprint("error",* args))
  trace = staticmethod(lambda* args: Mel._melprint("trace",* args))
  info = staticmethod(lambda* args: Mel._melprint("print",* args))
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

call(command, *args)
Static Method

source code 
Call a mel script , very simpilar to Mel.myscript( args )

To Do: more docs

mprint(*args)
Static Method

source code 
mel print command in case the python print command doesn't cut it. i have noticed that python print does not appear in certain output, such as the rush render-queue manager.