OpenMaya.MFnMatrixData Class Reference

OpenMaya.MFnMatrixData Class Reference

Class Description

Function set for matrix node data.

Method resolution order:
-   MFnMatrixData
-   MFnData
-   MFnBase
-   __builtin__.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.

 


+ Inheritance diagram for OpenMaya.MFnMatrixData:

Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnData
int kAny = 24
 
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 = 25
 
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
 

Constructor & Destructor Documentation

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

Member Function Documentation

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.