Used to change the structure of the DAG Method resolution order: - MDagModifier - MDGModifier - __builtin__.object
Signature | Parameters | Description |
---|---|---|
MDagModifier() | Default constructor. Returns a new, empty MDagModifier object. |
Default.
Default.
Public Member Functions | |
__init__ () | |
createNode () | |
reparentNode () | |
Public Member Functions inherited from OpenMaya.MDGModifier | |
__init__ () | |
addAttribute () | |
addExtensionAttribute () | |
commandToExecute () | |
connect () | |
createNode () | |
deleteNode () | |
disconnect () | |
doIt () | |
linkExtensionAttributeToPlugin () | |
newPlugValue () | |
newPlugValueBool () | |
newPlugValueChar () | |
newPlugValueDouble () | |
newPlugValueFloat () | |
newPlugValueInt () | |
newPlugValueMAngle () | |
newPlugValueMDistance () | |
newPlugValueMTime () | |
newPlugValueShort () | |
newPlugValueString () | |
pythonCommandToExecute () | |
removeAttribute () | |
removeExtensionAttribute () | |
removeExtensionAttributeIfUnset () | |
removeMultiInstance () | |
renameAttribute () | |
renameNode () | |
setNodeLockState () | |
undoIt () | |
unlinkExtensionAttributeFromPlugin () | |
OpenMaya.MDagModifier.__init__ | ( | ) |
x.__init__(...) initializes x; see help(type(x)) for 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. |