OpenMaya.MFnTypedAttribute Class Reference
Functionset for creating and working typed attributes.
Method resolution order:
- MFnTypedAttribute
- MFnAttribute
- MFnBase
- __builtin__.object
Base Class
MFnAttribute<h2>Constructors
Signature Parameters Description
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 .
OpenMaya.MFnTypedAttribute.__init__
(
)
x.__init__(...) initializes x; see help(type(x)) for 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 .
OpenMaya.MFnTypedAttribute.default
static
Default value
Name: default
Type: MObject
Access: RW
Description: Default value of attr.