OpenMaya.MFnMessageAttribute Class Reference

OpenMaya.MFnMessageAttribute Class Reference

Class Description

Functionset for creating and working with message attributes.

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

Base Class

MFnAttribute<h2>Constructors

SignatureParametersDescription
MFnMessageAttribute()  

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

MFnMessageAttribute(object) object - MObject

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

 


+ Inheritance diagram for OpenMaya.MFnMessageAttribute:

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

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnAttribute
int kDelete = 0
 
int kNothing = 2
 
int kReset = 1
 
- 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.MFnMessageAttribute.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MFnMessageAttribute.create ( )
Creates a new message attribute, attaches it to the function set and returns it as an MObject.
Signature: create(longName, shortName)
Parameters: longName - string
shortName - string
Returns: MObject
Description: Create a new message attribute with the given longName and shortName, attach it to the function set and return it in an MObject.