Python API 2.0 Reference
|
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 |
Functionset for creating and working typed attributes. Method resolution order: - MFnTypedAttribute - MFnAttribute - MFnBase - builtins.object
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. |
def OpenMaya.MFnTypedAttribute.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
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. |
|
static |
Default value
Name: | default |
Type: | MObject |
Access: | RW |
Description: | Default value of attr. |