Name | Type | Description |
---|---|---|
Disconnect Behavior | ||
kDelete | int | Delete array element (array attributes only). |
kReset | int | Reset the attribute to its default. |
kNothing | int | Do nothing to the attribute's value. |
None.
None.
Signature | Parameters | Description |
---|---|---|
MFnAttribute() | Default constructor. Returns a new MFnAttribute function set with no Maya object attached. | |
MFnAttribute(object) | object - MObject | Returns a new MFnAttribute function set, attached to the specified Maya object. |
Signature | Parameters | Returns | Description |
---|---|---|---|
accepts(type) | type - MTypeId or MFn Type constant | bool | Returns True if this attribute can accept a connection of the given type. |
getAddAttrCmd(longFlags=False) | longFlags - bool | string | Returns a string containing the addAttr command which would be required to recreate the attribute. The command includes the terminating semicolon and is formatted as if for use with a selected node, meaning that it contains no node name. If longFlags is True then the long flag names will be used, otherwise their short names will be used. |
Name | Type | Access | Description |
---|---|---|---|
affectsAppearance | bool | RW | Does attr affect appearance of object when rendered in the viewport? |
affectsWorldSpace | bool | RW | DAG nodes only. Does the attr affect the node's world-space state? |
array | bool | RW | Is attr an array? |
cached | bool | RW | Should attr value be cached in the datablock? |
channelBox | bool | RW | Should attr appear in Channel Box? |
connectable | bool | RW | Is attr connectable? |
disconnectBehavior | Disconnect Behaviour constant | RW | What should happen when attr loses an incoming connection? |
dynamic | bool | R | Is it a dynamic attr? |
extension | bool | R | Is it an extension attr? |
hidden | bool | RW | If True attr will not be displayed in the Attribute Editor. |
indeterminant | bool | RW | Hint to DG that this attr may not always be used when computing the attrs which are dependent upon it. |
indexMatters | bool | RW | If False, connectAttr -nextAvailable can be used with this attr. If True then an explicit index must be provided. |
internal | bool | RW | Will the node handle the attr's data storage itself, outside of the node's data block? |
keyable | bool | RW | Can keys be set on attr? |
name | string | R | Attr's long name. |
parent | MObject | RW | Parent attr. MObject::kNullObj if attr has no parent. |
readable | bool | RW | Is attr readable? |
renderSource | bool | RW | Is attr a render source? |
shortName | string | R | Attr's short name. |
storable | bool | RW | Should attr value be stored when written to file? |
usedAsColor | bool | RW | Should attr be treated as a color in the UI? |
usedAsFilename | bool | RW | Should attr be treated as a filename in the UI? |
usesArrayDataBuilder | bool | RW | Array attrs only. Does attr create elements using MArrayDataBuilder? |
worldSpace | bool | RW | DAG nodes only. If the node is instanced, will the attr have separate values for each instance? |
writable | bool | RW | Is attr writable? |
None.
None.
None.
© 2011 Autodesk, Inc. All rights reserved.