...
Most Python functions have identical return types and arguments as their C++ counterparts, with two notable exceptions: the MString
class is replaced by regular Python strings, and Maya array classes are replaced with plain Python lists of the contained type (e.g. a list of MVector
objects instead of MVectorArray
). Functions which return boolean values in the C++ API to indicate success or failure raise exceptions instead in Python. The Create* methods from MaxwellMayaAPI
are replaced by calling the constructors of the respective types directly. A few methods are changed so that they work in a manner which is better suited to the Python programming practices (e.g., the GetNumLayers
and GetLayer
methods have been replaced by a single GetLayers
method which returns a list of layers in the material). This documentation will describe the methods using the C++ syntax, noting Python differences where they exist.
...