# MFnMatrixAttribute

## Base Class

MFnAttribute

## Constants

Name | Type | Description
--- | --- | ---
Matrix Types
kFloat | int | Matrix of single-precision floats.
kDouble | int | Matrix of double-precision floats.

## Static Methods

None.

## Static Attributes

None.

## 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.

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
create(longName, shortName, type=kDouble) | longName - string shortName - string type - Matrix Type constant | MObject | 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.

## Object Attributes

Name | Type | Access | Description
--- | --- | --- | ---
default | MMatrix or MFloatMatrix | RW | Default value of attr.

## Sequence Support

None.

## Number Support

None.

## Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.