OpenMaya.MDagPath Class Reference

Class Description

Path to a DAG node from the top of the DAG.

Constructors

SignatureParametersDescription
MDagPath()  

Default constructor. Returns a new, empty MDagPath object.

MDagPath(src) src - MDagPath

Copy constructor. Returns a new MDagPath object with the same value as src.

Comparison Support

== True if both paths refer to the same instance of the same node.
!= True if the paths refer to different nodes or different instances of the same node.

All other comparison operators will raise a TypeError exception.

 


+ Inheritance diagram for OpenMaya.MDagPath:

Public Member Functions

__eq__ ()
 
__ge__ ()
 
__gt__ ()
 
__init__ ()
 
__le__ ()
 
__lt__ ()
 
__ne__ ()
 
__str__ ()
 
apiType ()
 
child ()
 
childCount ()
 
exclusiveMatrix ()
 
exclusiveMatrixInverse ()
 
extendToShape ()
 
fullPathName ()
 
getDisplayStatus ()
 
getDrawOverrideInfo ()
 
getPath ()
 
hasFn ()
 
inclusiveMatrix ()
 
inclusiveMatrixInverse ()
 
instanceNumber ()
 
isInstanced ()
 
isTemplated ()
 
isValid ()
 
isVisible ()
 
length ()
 
node ()
 
numberOfShapesDirectlyBelow ()
 
partialPathName ()
 
pathCount ()
 
pop ()
 
push ()
 
set ()
 
transform ()
 

Static Public Member Functions

getAPathTo ()
 
getAllPathsTo ()
 

Constructor & Destructor Documentation

OpenMaya.MDagPath.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MDagPath.__eq__ ( )
x.__eq__(y) <==> x==y
OpenMaya.MDagPath.__ge__ ( )
x.__ge__(y) <==> x>=y
OpenMaya.MDagPath.__gt__ ( )
x.__gt__(y) <==> x>y
OpenMaya.MDagPath.__le__ ( )
x.__le__(y) <==> x<=y
OpenMaya.MDagPath.__lt__ ( )
x.__lt__(y) <==> x<y
OpenMaya.MDagPath.__ne__ ( )
x.__ne__(y) <==> x!=y
OpenMaya.MDagPath.__str__ ( )
x.__str__() <==> str(x)
OpenMaya.MDagPath.apiType ( )
Returns the type of the object at the end of the path.
Signature: apiType()
Parameters:  
Returns: MFn constant
Description: Returns the type of the object at the end of the path.
OpenMaya.MDagPath.child ( )
Returns the specified child of the object at the end of the path.
Signature: child(childNum)
Parameters: childNum - int
Returns: MObject
Description: The childNum'th object parented directly beneath the object at the end of the path.
OpenMaya.MDagPath.childCount ( )
Returns the number of objects parented directly beneath the object at the end of the path.
Signature: childCount()
Parameters:  
Returns: int
Description: Returns the number of objects parented directly beneath the object at the end of the path.
OpenMaya.MDagPath.exclusiveMatrix ( )
Returns the matrix for all transforms in the path, excluding the end object.
Signature: exclusiveMatrix()
Parameters:  
Returns: MMatrix
Description: Returns the matrix for all transforms in the path, excluding the end object.
OpenMaya.MDagPath.exclusiveMatrixInverse ( )
Returns the inverse of exclusiveMatrix().
Signature: exclusiveMatrixInverse()
Parameters:  
Returns: MMatrix
Description: Returns the inverse of exclusiveMatrix().
OpenMaya.MDagPath.extendToShape ( )
Extends the path to the specified shape node parented directly beneath the transform at the current end of the path.
Signature: extendToShape(shapeNum=0)
Parameters: shapeNum - int
Returns: New reference to self.
Description: Extends the path to the shapeNum'th shape node parented directly beneath the transform at the current end of the path.
OpenMaya.MDagPath.fullPathName ( )
Returns a string representation of the path from the DAG root to the path's last node.
Signature: fullPathName()
Parameters:  
Returns: string
Description: Returns a string representation of the path from the DAG root to the path's last node.
OpenMaya.MDagPath.getAllPathsTo ( )
static
Returns all paths to the given node.
Name: getAllPathsTo(node)
Parameters: node - MObject
Returns: MDagPathArray
Description: Returns all paths to the given node.
OpenMaya.MDagPath.getAPathTo ( )
static
Returns the first path found to the given node.
Name: getAPathTo(node)
Parameters: node - MObject
Returns: MDagPath
Description: Returns the first path found to the given node.
OpenMaya.MDagPath.getDisplayStatus ( )
Returns the display status for this path.
OpenMaya.MDagPath.getDrawOverrideInfo ( )
Returns the draw override information for this path.
OpenMaya.MDagPath.getPath ( )
Returns the specified sub-path of this path.
Signature: getPath(pathNum=0)
Parameters: pathNum - int
Returns: MDagPath
Description: The pathNum'th sub-path of this path.
OpenMaya.MDagPath.hasFn ( )
Returns True if the object at the end of the path supports the given function set.
Signature: hasFn(type)
Parameters: type - MFn constant
Returns: bool
Description: Returns True if the object at the end of the path supports the function set represented by type.
OpenMaya.MDagPath.inclusiveMatrix ( )
Returns the matrix for all transforms in the path, including the end object, if it is a transform.
Signature: inclusiveMatrix()
Parameters:  
Returns: MMatrix
Description: Returns the matrix for all transforms in the path, including the end object, if it is a transform.
OpenMaya.MDagPath.inclusiveMatrixInverse ( )
Returns the inverse of inclusiveMatrix().
Signature: inclusiveMatrixInverse()
Parameters:  
Returns: MMatrix
Description: Returns the inverse of inclusiveMatrix().
OpenMaya.MDagPath.instanceNumber ( )
Returns the instance number of this path to the object at the end.
Signature: instanceNumber()
Parameters:  
Returns: int
Description: Returns the instance number of this path to the object at the end.
OpenMaya.MDagPath.isInstanced ( )
Returns True if the object at the end of the path can be reached by more than one path.
Signature: isInstanced()
Parameters:  
Returns: bool
Description: Returns True if the object at the end of the path can be reached by more than one path.
OpenMaya.MDagPath.isTemplated ( )
Returns true if the DAG Node at the end of the path is templated.
OpenMaya.MDagPath.isValid ( )
Returns True if this is a valid path.
Signature: isValid()
Parameters:  
Returns: bool
Description: True if this is a valid path.
OpenMaya.MDagPath.isVisible ( )
Returns true if the DAG Node at the end of the path is visible.
OpenMaya.MDagPath.length ( )
Returns the number of nodes on the path, not including the DAG's root node.
Signature: length()
Parameters:  
Returns: int
Description: Returns the number of nodes on the path, not including the DAG's root node.
OpenMaya.MDagPath.node ( )
Returns the DAG node at the end of the path.
Signature: node()
Parameters:  
Returns: MObject
Description: Returns the DAG node at the end of the path.
OpenMaya.MDagPath.numberOfShapesDirectlyBelow ( )
Returns the number of shape nodes parented directly beneath the transform at the end of the path.
Signature: numberOfShapesDirectlyBelow()
Parameters:  
Returns: int
Description: Returns the number of shape nodes parented directly beneath the transform at the end of the path. If the path does not end at a transform, or if the transform has no shape nodes directly beneath it, 0 will be returned.
OpenMaya.MDagPath.partialPathName ( )
Returns the minimum string representation which will uniquely identify the path.
Signature: partialPathName()
Parameters:  
Returns: string
Description: Returns the minimum string representation which will uniquely identify the path.
OpenMaya.MDagPath.pathCount ( )
Returns the number of sub-paths which make up this path.
Signature: pathCount()
Parameters:  
Returns: int
Description: Returns the number of sub-paths which make up this path.
OpenMaya.MDagPath.pop ( )
Removes objects from the end of the path.
Signature: pop(num=1)
Parameters: num - int
Returns: New reference to self.
Description: Removes num objects from the end of the path.
OpenMaya.MDagPath.push ( )
Extends the path to the specified child object, which must be parented directly beneath the object currently at the end of the path.
Signature: push(child)
Parameters: child - MObject
Returns: New reference to self.
Description: Extends the path to the specified child object, which must be parented directly beneath the object currently at the end of the path.
OpenMaya.MDagPath.set ( )
Replaces the current path held by this object with another.
Signature: set(path)
Parameters: path - MDagPath
Returns: New reference to self.
Description: Replaces the current path held by this object with that of path.
OpenMaya.MDagPath.transform ( )
Returns the last transform node on the path.
Signature: transform()
Parameters:  
Returns: MObject
Description: Returns the last transform node on the path.