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

Public Member Functions

def __init__ ()
 
def create ()
 
def isTransformation ()
 
def matrix ()
 
def set ()
 
def transformation ()
 
- Public Member Functions inherited from OpenMaya.MFnData
def __init__ ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
def __init__ ()
 
def hasObj ()
 
def object ()
 
def setObject ()
 
def type ()
 

Static Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnData
int kAny = 24
 
int kFalloffFunction = 25
 
int kFloatArray = 8
 
int kMatrixArray = 12
 
int kComponentList = 13
 
int kDoubleArray = 7
 
int kDynArrayAttrs = 19
 
int kDynSweptGeometry = 20
 
int kIntArray = 9
 
int kInvalid = 0
 
int kLast = 26
 
int kLattice = 15
 
int kMatrix = 5
 
int kMesh = 14
 
int kNId = 23
 
int kNObject = 22
 
int kNumeric = 1
 
int kNurbsCurve = 16
 
int kNurbsSurface = 17
 
int kPlugin = 2
 
int kPluginGeometry = 3
 
int kPointArray = 10
 
int kSphere = 18
 
int kString = 4
 
int kStringArray = 6
 
int kSubdSurface = 21
 
int kVectorArray = 11
 

Detailed Description

Function set for matrix node data.

Method resolution order:
-   MFnMatrixData
-   MFnData
-   MFnBase
-   builtins.object

Base Class

MFnData<h2>Constructors

SignatureParametersDescription
MFnMatrixData()  

Default constructor. Returns a new MFnMatrixData function set with no Maya object attached.

MFnMatrixData(object) object - MObject

Returns a new MFnMatrixData function set, with the specified Maya object attached.

 


Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MFnMatrixData.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MFnMatrixData.create ( )
Creates a new matrix data object.
Signature: create()
Parameters:  
Returns: MObject
Description: Creates a new MMatrix data object, initializes it to the identity matrix, attaches it to the function set and returns an MObject which references it.
Signature: create(matrix)
Parameters: matrix - MMatrix
Returns: MObject
Description: Creates a new MMatrix data object, initializes it from the given matrix, attaches it to the function set and returns an MObject which references it.
Signature: create(tm)
Parameters: tm - MTransformationMatrix
Returns: MObject
Description: Creates a new MTransformationMatrix data object, initializes it from transformation matrix tm, attaches it to the function set and returns an MObject which references it.
OpenMaya.MFnMatrixData.isTransformation ( )
Returns True if the attached object is an MTransformationMatrix, False if it is an MMatrix.
Signature: isTransformation()
Parameters:  
Returns: bool
Description: Returns True if the attached object is an MTransformationMatrix, False if it is an MMatrix.
OpenMaya.MFnMatrixData.matrix ( )
Returns the encapsulated matrix as an MMatrix.
Signature: matrix()
Parameters:  
Returns: MMatrix
Description: Returns the encapsulated MMatrix. If the function set was previously encapsulating an MTransformationMatrix it will be converted to an MMatrix and any previously returned references (e.g. from the transformation() method) will no longer be invalid.
OpenMaya.MFnMatrixData.set ( )
Sets the value of the encapsulated matrix.
Signature: set(matrix)
Parameters: matrix - MMatrix
Returns: Reference to self.
Description: Replaces the contents of the encapsulated matrix with that of the supplied matrix. If the function set was previously encapsulating an MTransformationMatrix it will be switched to an MMatrix and any previously returned references (e.g. from the transformation() method) will no longer be invalid.
Signature: set(tm)
Parameters: tm - MTransformationMatrix
Returns: Reference to self.
Description: Replaces the contents of the encapsulated matrix with that of the supplied transformation matrix tm. If the function set was previously encapsulating an MMatrix it will be switched to an MTransformationMatrix and any previously returned references (e.g. from the matrix() method) will no longer be invalid.
OpenMaya.MFnMatrixData.transformation ( )
Returns the encapsulated matrix as an MTransformationMatrix.
Signature: transformation()
Parameters:  
Returns: MTransformationMatrix
Description: Returns the encapsulated MTransformationMatrix. If the function set was previously encapsulating an MMatrix it will be converted to an MTransformationMatrix and any previously returned references (e.g. from the matrix() method) will no longer be invalid.