Python API 2.0 Reference
OpenMaya.MDagModifier Class Reference
+ Inheritance diagram for OpenMaya.MDagModifier:

Public Member Functions

def __init__ ()
 
def createNode ()
 
def reparentNode ()
 
- Public Member Functions inherited from OpenMaya.MDGModifier
def __init__ ()
 
def addAttribute ()
 
def addExtensionAttribute ()
 
def commandToExecute ()
 
def connect ()
 
def createNode ()
 
def deleteNode ()
 
def disconnect ()
 
def doIt ()
 
def linkExtensionAttributeToPlugin ()
 
def newPlugValue ()
 
def newPlugValueBool ()
 
def newPlugValueChar ()
 
def newPlugValueDouble ()
 
def newPlugValueFloat ()
 
def newPlugValueInt ()
 
def newPlugValueMAngle ()
 
def newPlugValueMDistance ()
 
def newPlugValueMTime ()
 
def newPlugValueShort ()
 
def newPlugValueString ()
 
def pythonCommandToExecute ()
 
def removeAttribute ()
 
def removeExtensionAttribute ()
 
def removeExtensionAttributeIfUnset ()
 
def removeMultiInstance ()
 
def renameAttribute ()
 
def renameNode ()
 
def setNodeLockState ()
 
def undoIt ()
 
def unlinkExtensionAttributeFromPlugin ()
 

Static Public Member Functions

def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MDGModifier
def __new__ ()
 

Detailed Description

Used to change the structure of the DAG

Method resolution order:
-   MDagModifier
-   MDGModifier
-   builtins.object

Base Class

MDGModifier

Constructors

Signature Parameters Description
MDagModifier()  

Default constructor. Returns a new, empty MDagModifier object.

str() Support

Default.

repr() Support

Default.

 


Constructor & Destructor Documentation

def OpenMaya.MDagModifier.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMaya.MDagModifier.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MDagModifier.createNode ( )
createNode(typeName, parent=MObject.kNullObj) -> new DAG node MObject
createNode(typeId,   parent=MObject.kNullObj) -> new DAG node MObject

Adds an operation to the modifier to create a DAG node of the specified
type. If a parent DAG node is provided the new node will be parented
under it. If no parent is provided and the new DAG node is a transform
type then it will be parented under the world. In both of these cases
the method returns the new DAG node.

If no parent is provided and the new DAG node is not a transform type
then a transform node will be created and the child parented under that. The new transform will be parented under the world and it is the
transform node which will be returned by the method, not the child.

None of the newly created nodes will be added to the DAG until the
modifier's doIt() method is called.
Signature: createNode(typeName, parent=MObject.kNullObj)
Parameters: typeName - string
parent - MObject
Returns: MObject
Description:

Adds an operation to the modifier to create a DAG node of the specified type. If a parent DAG node is provided the new node will be parented under it. If no parent is provided and the new DAG node is a transform type then it will be parented under the world. In both of these cases the method returns the new DAG node<br>

If no parent is provided and the new DAG node is not a transform type then a transform node will be created and the child parented under that. The new transform will be parented under the world and it is the transform node which will be returned by the method, not the child.

None of the newly created nodes will be added to the DAG until the modifier's doIt() method is called.

Raises TypeError if the node type does not exist or if the parent is not a transform type.

Signature: createNode(typeId, parent=MObject.kNullObj)
Parameters: typeName - MTypeId
parent - MObject
Returns: MObject
Description:

Adds an operation to the modifier to create a DAG node of the specified type. If a parent DAG node is provided the new node will be parented under it. If no parent is provided and the new DAG node is a transform type then it will be parented under the world. In both of these cases the method returns the new DAG node.

If no parent is provided and the new DAG node is not a transform type then a transform node will be created and the child parented under that. The new transform will be parented under the world and it is the transform node which will be returned by the method, not the child.

None of the newly created nodes will be added to the DAG until the modifier's doIt() method is called.

Raises TypeError if the node type does not exist or if the parent is not a transform type<span>.

OpenMaya.MDagModifier.reparentNode ( )
reparentNode(MObject node, newParent=MObject.kNullObj) -> self

Adds an operation to the modifier to reparent a DAG node under a
specified parent.

If no parent is provided then the DAG node will be reparented under the
world, so long as it is a transform type. If it is not a transform type
then the doIt() will raise a RuntimeError.
Signature: reparentNode(node, newParent=MObject.kNullObj)
Parameters: node - MObject
newParent - MObject
Returns: Reference to self.
Description:

Adds an operation to the modifier to reparent a DAG node under a specified parent. Raises TypeError if the node is not a DAG node or the parent is not a transform type.

If no parent is provided then the DAG node will be reparented under the world, so long as it is a transform type. If it is not a transform type then the doIt() will raise a RuntimeError.