mango.utils.api module

class mango.utils.api.MDGModifier

Bases: object

class mango.utils.api.MDagModifier

Bases: object

mango.utils.api.create_node(node_type, name=None, parent=None)
Parameters:
  • node_type (str) –
  • name (str/None) –
  • parent (str/OpenMaya.MObject/None) –
Returns:

Node

Return type:

OpenMaya.MObject

mango.utils.api.execute_modifier(modifier)

Execute a modifier object. After this the apiundo package is used to ensure that the command is undo/redo-able within Maya.

Parameters:modifier (OpenMaya.MDGModifier/OpenMaya.MDagModifier) –
mango.utils.api.get_object(node)
Parameters:node (str) –
Returns:Maya object node
Return type:OpenMaya.MObject
mango.utils.api.get_plug(node)
Parameters:node (str) –
Returns:Maya plug node
Return type:OpenMaya.MPlug