Python API 2.0 Reference
OpenMaya.MFnTypedAttribute Class Reference
+ Inheritance diagram for OpenMaya.MFnTypedAttribute:

Public Member Functions

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

Static Public Member Functions

def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnAttribute
def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnBase
def __new__ ()
 

Properties

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

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

def OpenMaya.MFnTypedAttribute.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMaya.MFnTypedAttribute.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
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 = property(...)
static
 Default value
Name: default
Type: MObject
Access: RW
Description: Default value of attr.