OpenMaya.MFnMatrixAttribute Class Reference

OpenMaya.MFnMatrixAttribute Class Reference

Class Description

Functionset for creating and working with matrix attributes.

Method resolution order:
-   MFnMatrixAttribute
-   MFnAttribute
-   MFnBase
-   __builtin__.object

Base Class

MFnAttribute<h2>Constructors

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

 


+ Inheritance diagram for OpenMaya.MFnMatrixAttribute:

Public Member Functions

__init__ ()
 
create ()
 
- Public Member Functions inherited from OpenMaya.MFnAttribute
__init__ ()
 
accepts ()
 
acceptsAttribute ()
 
addToCategory ()
 
getAddAttrCmd ()
 
hasCategory ()
 
setNiceNameOverride ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
__init__ ()
 
hasObj ()
 
object ()
 
setObject ()
 
type ()
 

Static Public Attributes

Matrix Types
int kDouble = 1
 
int kFloat = 0
 
- Static Public Attributes inherited from OpenMaya.MFnAttribute
int kDelete = 0
 
int kNothing = 2
 
int kReset = 1
 

Properties

 default
 
- Properties inherited from OpenMaya.MFnAttribute
 affectsAppearance
 
 affectsWorldSpace
 
 array
 
 cached
 
 channelBox
 
 connectable
 
 disconnectBehavior
 
 dynamic
 
 extension
 
 hidden
 
 indeterminant
 
 indexMatters
 
 internal
 
 isProxyAttribute
 
 keyable
 
 name
 
 parent
 
 readable
 
 renderSource
 
 shortName
 
 storable
 
 usedAsColor
 
 usedAsFilename
 
 usesArrayDataBuilder
 
 worldSpace
 
 writable
 

Constructor & Destructor Documentation

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

Member Function Documentation

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.

Member Data Documentation

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.

Property Documentation

OpenMaya.MFnMatrixAttribute.default
static
 Default value
Name: default
Type: MMatrix or MFloatMatrix
Access: RW
Description: Default value of attr.