Python API 2.0 Reference: OpenMaya.MFnMatrixAttribute Class Reference
Functionset for creating and working with matrix attributes.
Method resolution order:
- MFnMatrixAttribute
- MFnAttribute
- MFnBase
- builtins.object
Base Class
MFnAttribute<h2>Constructors
Signature | Parameters | Description |
MFnMatrixAttribute() | | Default constructor. Returns a new MFnMatrixAttribute function set with no Maya object attached.
|
MFnMatrixAttribute(object) | object - MObject | Returns a new MFnMatrixAttribute function set, attached to the specified Maya object.
|
OpenMaya.MFnMatrixAttribute.__init__ |
( |
| ) |
|
Initialize self. See help(type(self)) for accurate signature.
OpenMaya.MFnMatrixAttribute.__new__ |
( |
| ) |
|
|
static |
Create and return a new object. See help(type) for accurate signature.
OpenMaya.MFnMatrixAttribute.create |
( |
| ) |
|
Creates a new matrix attribute, attaches it to the function set and returns it as an MObject.
Signature: | create(longName, shortName, type=kDouble) |
Parameters: | longName - string
shortName - string
type - Matrix Type constant |
Returns: | MObject |
Description: | Create a new float or double matrix attribute with the given longName and shortName, attach it to the function set and return it in an MObject. |
OpenMaya.MFnMatrixAttribute.kDouble = 1 |
|
static |
Name: | kDouble |
Type: | int |
Description: | Matrix of double-precision floats. |
OpenMaya.MFnMatrixAttribute.kFloat = 0 |
|
static |
Name: | kFloat |
Type: | int |
Description: | Matrix of single-precision floats. |
OpenMaya.MFnMatrixAttribute.default |
|
static |