Returns true if this attribute can accept a connection of the given type.
Parameters: |
|
---|---|
Return type: | bool |
Derived from api method maya.OpenMaya.MFnData.accepts
Returns a string containing the addAttr command which would be required to recreate the attribute on a node. The command includes the terminating semicolon and is formatted as if for use with a selected node, meaning that it contains no node name.
Parameters: |
|
---|---|
Return type: | unicode |
Derived from api method maya.OpenMaya.MFnAttribute.getAddAttrCmd
Returns the behavior of this attribute when it is disconnected. The possible settings are as follows:
Return type: | Attribute.DisconnectBehavior |
---|
Derived from api method maya.OpenMaya.MFnAttribute.disconnectBehavior
Determines whether the user must specify an index when connecting to this attribute, or whether the next available index can be used. This method only applies to array attributes which are non readable, i.e. destination attributes.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.indexMatters
Returns true if a node has internal member data representing this attribute.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.internal
Get the parent of this attribute, if it has one.
Return type: | PyNode |
---|
Derived from api method maya.OpenMaya.MFnAttribute.parent
Returns true if this attribute uses an array data builder. If so, then the MArrayDataBuilder class may be used with this attribute.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.usesArrayDataBuilder
Returns true if this attribute affects worldspace.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isAffectsWorldSpace
Returns true if this attribute supports an array of data.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isArray
Returns true if this attribute is cached locally in the node’s data block. The default for this is true. Caching a node locally causes a copy of the attribute value for the node to be cached with the node. This removes the need to traverse through the graph to get the value each time it is requested.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isCached
Returns true if this attribute has its channel box flag set. Attributes will appear in the channel box if their channel box flag is set or if they are keyable.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isChannelBoxFlagSet
Returns true if this attribute accepts dependency graph connections. If it does, then the readable and writable methods will indicate what types of connections are accepted.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isConnectable
Returns true if this attribute is a dynamic attribute.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isDynamic
Returns true if this attribute is to hidden from the UI. The attribute will not show up in attribute editors.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isHidden
Returns true if this attribute is indeterminant. If an attribute may or may not be used during an evaluation then it is indeterminant. This attribute classification is mainly used on rendering nodes to indicate that some attributes are not always used.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isIndeterminant
Returns true if this attribute is keyable. Keyable attributes will be keyed by AutoKey and the Set Keyframe UI. Non-keyable attributes prevent the user from setting keys via the obvious UI provided for keying. Being non-keyable is not a hard block against adding keys to an attribute.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isKeyable
Returns true if this attribute is readable. If an attribute is readable, then it can be used as the source in a dependency graph connection.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isReadable
Returns true if this attribute is a render source. This attribute is used on rendering nodes to override the rendering sampler info.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isRenderSource
Returns true if this attribute is to be stored when the node is saved to a file.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isStorable
Returns true if this attribute is to be presented as a color in the UI.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isUsedAsColor
Returns true if this attribute is worldspace.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isWorldSpace
Returns true if this attribute is writable. If an attribute is writable, then it can be used as the destination in a dependency graph connection.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnAttribute.isWritable
Sets whether this attribute should affect worldspace. NOTES: This property is ignored on non-dag nodes.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setAffectsWorldSpace
Sets whether this attribute should have an array of data. This should be set to true if the attribute needs to accept multiple incoming connections.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setArray
Sets whether the data for this attribute is cached locally in the node’s data block. The default for this is true. Caching a node locally causes a copy of the attribute value for the node to be cached with the node. This removes the need to traverse through the graph to get the value each time it is requested. This should only get called in the initialize call of your node creator.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setCached
Sets whether this attribute should appear in the channel box when the node is selected. This should only get called in the initialize call of your node creator. Keyable attributes are always shown in the channel box so this flag is ignored on keyable attributes. It is for intended for use on non-keyable attributes which you want to appear in the channel box.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setChannelBox
Undo is not currently supported for this method
Sets whether this attribute should allow dependency graph connections. This should only get called in the initialize call of your node creator.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setConnectable
Sets the disconnection behavior for this attribute. This determines what happens when a connection to this attribute is deleted. This should only get called in the initialize call of your node creator.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setDisconnectBehavior
Sets whether this attribute should be hidden from the UI. This is useful if the attribute is being used for blind data, or if it is being used as scratch space for a geometry calculation (should also be marked non-connectable in that case).
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setHidden
Sets whether this attribute is indeterminant. If an attribute may or may not be used during an evaluation then it is indeterminant. This attribute classification is mainly used on rendering nodes to indicate that some attributes are not always used.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setIndeterminant
If the attribute is an array, then this method specifies whether to force the user to specify an index when connecting to this attribute, or to use the next available index.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setIndexMatters
The function controls an attribute’s data storage. When set to true, the virtual methods MPxNode::setInternalValueInContext() and MPxNode::getInternalValueInContext() are invoked whenever the attribute value is set or queried, respectively. By default, attributes are not internal.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setInternal
Sets whether this attribute should accept keyframe data. This should only get called in the initialize call of your node creator. Keyable attributes will be keyed by AutoKey and the Set Keyframe UI. Non-keyable attributes prevent the user from setting keys via the obvious UI provided for keying. Being non-keyable is not a hard block against adding keys to an attribute.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setKeyable
Sets the parent attribute for this attribute. If the attribute was already a member of a compound, it will be removed from that attribute structure, and added to the specified one.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setParent
Sets whether this attribute should be readable. If an attribute is readable, then it can be used as the source in a dependency graph connection.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setReadable
Sets whether this attribute should be used as a render source attribute. When writing shader plug-ins, it is sometimes useful to be able to modify the sampler info, so upstream shading network can be re- evaluated with different sampler info values.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setRenderSource
Sets whether this attribute should be storable. If an attribute is storable, then it will be writen out when the node is stored to a file. This should only get called in the initialize call of your node creator.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setStorable
Sets whether this attribute should be presented as a color in the UI.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setUsedAsColor
Sets whether this attribute uses an array data builder. If true, then the MArrayDataBuilder class may be used with this attribute to generate its data. If false, MArrayDataHandle::builder will fail.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setUsesArrayDataBuilder
Sets whether this attribute should be treated as worldspace. Being worldspace indicates the attribute is dependent on the worldSpace transformation of this node, and will be marked dirty by any attribute changes in the hierarchy that affects the worldSpace transformation. The attribute needs to be an array since during instancing there are multiple worldSpace paths to the node & Maya requires one array element per path for worldSpace attributes.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setWorldSpace
Sets whether this attribute should be writable. If an attribute is writable, then it can be used as the destination in a dependency graph connection. If an attribute is not writable then setAttr commands will fail to change the attribute.
Parameters: |
|
---|
Derived from api method maya.OpenMaya.MFnAttribute.setWritable
Returns the short name of the attribute. If the attribute has no short name then its long name is returned.
Return type: | unicode |
---|
Derived from api method maya.OpenMaya.MFnAttribute.shortName