# MDagModifier

## Base Class

MDGModifier

## Constants

None.

## Static Methods

None.

## Constructors

Signature | Parameters | Description
--- | --- | ---
MDagModifier() |  | Default constructor. Returns a new, empty MDagModifier object.

## Virtual Methods

None.

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
createNode(typeName, parent=MObject.kNullObj) | typeName - string parent - MObject | 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. Raises TypeError if the node type does not exist or if the parent is not a transform type.
createNode(typeId, parent=MObject.kNullObj) | typeName - MTypeId parent - MObject | 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. Raises TypeError if the node type does not exist or if the parent is not a transform type.
reparentNode(node, newParent=MObject.kNullObj) | node - MObject newParent - MObject | Reference to self. | 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.

## Object Attributes

None.

## Sequence Support

None.

## Number Support

None.

## Comparison Support

None.

## str() Support

Default.

## repr() Support

Default.

© 2011 Autodesk, Inc. All rights reserved.