Python API 2.0 Reference: OpenMaya.MFnTypedAttribute Class Reference

+ Inheritance diagram for OpenMaya.MFnTypedAttribute:

Public Member Functions

__init__ ()
 
attrType ()
 
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 ()
 

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
 

Additional Inherited Members

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

Detailed Description

Functionset for creating and working typed attributes.

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

Base Class

MFnAttribute<h2>Constructors

SignatureParametersDescription
MFnTypedAttribute()  

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

MFnTypedAttribute(object) object - MObject

Returns a new MFnTypedAttribute function set, attached to the specified Maya object.

 


Constructor & Destructor Documentation

OpenMaya.MFnTypedAttribute.__init__ ( )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Member Function Documentation

OpenMaya.MFnTypedAttribute.attrType ( )
Returns the type of data handled by the attribute.
Signature: attrType()
Parameters:  
Returns: MFnData Type constant
Description: Returns the type of data handled by the attribute.
OpenMaya.MFnTypedAttribute.create ( )
Creates a new type attribute, attaches it to the function set and returns it as an MObject.
Signature: create(longName, shortName, type, defaultValue=MObject.kNullObj)
Parameters: longName - string
shortName - string
type - MTypeId or MFnData Type constant
defaultValue - MObject
Returns: MObject
Description: Creates a new attribute of the given type with the given longName, shortName and defaultValue, attaches it to the function set and returns it in an MObject.

Property Documentation

OpenMaya.MFnTypedAttribute.default
static
 Default value
Name: default
Type: MObject
Access: RW
Description: Default value of attr.