pymel.core.nodetypes.OldBlindDataBase

Inheritance diagram of OldBlindDataBase

class OldBlindDataBase(*args, **kwargs)
addAttribute(attr)

Add a new dynamic attibute to this node.

Parameters :
attr : PyNode

new attribute

Derived from api method maya.OpenMaya.MFnDependencyNode.addAttribute

Undo is not currently supported for this method

classmethod allocateFlag(pluginName)

Allocates a node flag for sole use by the caller. Note that the flag is not specific to any one node but is made available to the caller on all nodes. Furthermore, node flags only persist for the duration of the current Maya session: they are not saved with the scene.

Parameters :
pluginName : unicode

The name of the plugin which is allocating the flag. A plugin’s name can be retrieved by calling within its initializePlugin() or uninitializePlugin() functions.

Return type:

int

Derived from api method maya.OpenMaya.MFnDependencyNode.allocateFlag

attribute(index)

Finds the attribute of this node at the given index. Index order is based on the order in which the attributes were added to the node.

Parameters :
index : int

the index of the attribute

Return type:

PyNode

Derived from api method maya.OpenMaya.MFnDependencyNode.attribute

attributeClass(attribute)

Returns the class (normal, dynamic, extension) of the specified attribute.

Parameters :
attribute : PyNode

the attribute to check

Return type:

OldBlindDataBase.MAttrClass

Derived from api method maya.OpenMaya.MFnDependencyNode.attributeClass

classmethod deallocateAllFlags(pluginName)

Deallocates all of the node flags which are currently allocated to the specified plugin. The deallocated flags immediately become available for use by any plugin.

Parameters :
pluginName : unicode

The name of the plugin whose flags are to be deallocated. A plugin’s name can be retrieved by calling within its initializePlugin() or uninitializePlugin() functions.

Derived from api method maya.OpenMaya.MFnDependencyNode.deallocateAllFlags

Undo is not currently supported for this method

classmethod deallocateFlag(pluginName, flag)

Deallocates a node flag which was previously allocated by a call to allocateFlag . The flag subsequently becomes available for reallocation and use by someone else.

Parameters :
pluginName : unicode

The name of the plugin which allocated the flag. A plugin’s name can be retrieved by calling within its initializePlugin() or uninitializePlugin() functions.

flag : int

Flag to deallocate.

Derived from api method maya.OpenMaya.MFnDependencyNode.deallocateFlag

Undo is not currently supported for this method

dgCallbacks(timerType, callbackName, value)

Node callbacks that occur when timing is enabled get logged with the node and can be queried via this method. See the dgCallbackIds method for getting a further breakdown of the time for an individual callback on this node.

Parameters :
timerType : OldBlindDataBase.MdgTimerType

The timer we want to query, e.g. kTimerType_self for self time.

values: ‘_self’, ‘_inclusive’, ‘_count’

callbackName : list list

Returns an array of callback names that were invoked for this node since the last timer reset.

value : float list

Returns an array of timing values. There is a one-to-one correspondence with the `callbackName’ array.

Derived from api method maya.OpenMaya.MFnDependencyNode.dgCallbacks

Undo is not currently supported for this method

dgTimer(timerMetric, timerType)

The function returns the specified timer value for the current node. This is the total amount of time spent performing the requested operation since the timer was last reset (see dgTimerReset() for details). There are numerous timers per node and these are referenced by the metric and the timer type.

Parameters :
timerMetric : OldBlindDataBase.MdgTimerMetric

The timing metric we wish to query.

values: ‘_callback’, ‘_compute’, ‘_dirty’, ‘_draw’, ‘_fetch’, ‘_callbackViaAPI’, ‘_callbackNotViaAPI’, ‘_computeDuringCallback’, ‘_computeNotDuringCallback’

timerType : OldBlindDataBase.MdgTimerType

The timer type we wish to query.

values: ‘_self’, ‘_inclusive’, ‘_count’

Return type:

float

Derived from api method maya.OpenMaya.MFnDependencyNode.dgTimer

dgTimerOff()

The function stops the timing of dependency graph evaluation for this node Derived from api method maya.OpenMaya.MFnDependencyNode.dgTimerOff

Undo is not currently supported for this method

dgTimerOn()

The function starts the timing for this node. Note that this does not reset the timers and counters on the node, it merely activates the timing mechanism within Maya and subsequent timing values are added to the current timer and counter values. If you also want the counters to be reset, use the method dgTimerReset() . Derived from api method maya.OpenMaya.MFnDependencyNode.dgTimerOn

Undo is not currently supported for this method

dgTimerQueryState()

The function returns the current on/off state of the node’s timer.

Return type:OldBlindDataBase.MdgTimerState

Derived from api method maya.OpenMaya.MFnDependencyNode.dgTimerQueryState

dgTimerReset()

The function resets the dependency graph timers and counters for this node to zero. Note that this method does not start or stop timing, it only resets the values to zero. If you want to turn on timing, use the method dgTimerOn() . If you want to turn off timing, use dgTimerOff() . Derived from api method maya.OpenMaya.MFnDependencyNode.dgTimerReset

Undo is not currently supported for this method

findAlias(alias, attrObj)

The function looks for an aliased attribute on this node with the given name

Parameters :
alias : unicode

name of the alias attribute.

attrObj : PyNode

of the alias attribute.

Return type:

bool

Derived from api method maya.OpenMaya.MFnDependencyNode.findAlias

findPlug(attr, wantNetworkedPlug)

Attempt to find a plug for the given attribute. This method will first try to find the networked version of the plug if requested. The networked version of a plug is one that currently exists in the dependency graph at a particular connection point. If a networked version is not found, then a standard non-networked plug is returned.

Parameters :
attr : PyNode

attribute whose plug we wish to find

wantNetworkedPlug : bool

if true, request a networked plug if it is available

Return type:

PyNode

Derived from api method maya.OpenMaya.MFnDependencyNode.findPlug

getAffectedAttributes(attr)

Returns an array of attributes that are affected by the attribute passed in. That is, when the given attribute, attr is marked dirty (changed) all the affectedAttributes attributes will also be marked dirty. For nodes defined in plug-ins this call returns all those attributes that were marked as being affected by the given one via the MPxNode::attributeAffects call.

Parameters :
attr : PyNode

the attribute to check

Return type:

PyNode list

Derived from api method maya.OpenMaya.MFnDependencyNode.getAffectedAttributes

getAffectedByAttributes(attr)

Returns an array of attributes that affect the attribute passed in, attr . That is, when one of the attributes in affectedByAttributes is marked dirty (changed) then attr will also be marked dirty. For nodes defined in plug-ins this call returns all those attributes that were marked as affecting the given one via the MPxNode::attributeAffects call.

Parameters :
attr : PyNode

the attribute to check

Return type:

PyNode list

Derived from api method maya.OpenMaya.MFnDependencyNode.getAffectedByAttributes

getAliasAttr(force)

The function returns the alias attribute list; returns NULL if it doesn’t exist. If the value of argument ‘force’ is true, an alias attribute is created if one doesn’t exist.

Parameters :
force : bool

To indicate whether the alias attr should be created.

Return type:

PyNode

Derived from api method maya.OpenMaya.MFnDependencyNode.getAliasAttr

getAliasList()

The function sets a pointer to the list of all attribute aliases for this node.

Return type:(bool, list list)

Derived from api method maya.OpenMaya.MFnDependencyNode.getAliasList

getConnections()

Get all of the current connections to this node as an array of plugs.

Return type:PyNode list

Derived from api method maya.OpenMaya.MFnDependencyNode.getConnections

getName()

Returns the name of this node. Note that if the object the instance of this class is attached to is data instead of being in the graph (ie. the object was created by one of the MFn*Data function sets, or was passed to an MPxNode::compute function in a data block) then the name method will not work.

Return type:unicode

Derived from api method maya.OpenMaya.MFnDependencyNode.name

hasAttribute(attrName)

Returns true if the node already has an attribute with the given name.

Parameters :
attrName : unicode

Name of attribute to be checked.

Return type:

bool

Derived from api method maya.OpenMaya.MFnDependencyNode.hasAttribute

hasUniqueName()

Indicates whether or not this node’s name is unique within the scene.

Return type:bool

Derived from api method maya.OpenMaya.MFnDependencyNode.hasUniqueName

isFromReferencedFile()

Indicates whether or not this node came from a referenced file. If it did, the node will be marked as read-only in the scene and changes to the node’s attributes will be saved in the main scene file, not the referenced from from which the node came.

Return type:bool

Derived from api method maya.OpenMaya.MFnDependencyNode.isFromReferencedFile

isNewAttribute(attr)

Indicates whether or not the specified attribute was added to this node within the current scene.

Parameters :
attr : PyNode

Attribute to check.

Return type:

bool

Derived from api method maya.OpenMaya.MFnDependencyNode.isNewAttribute

plugsAlias(plug)

The function returns the name of the alias on whose attribute the given plug is created.

Parameters :
plug : PyNode

the plug on the attribute.

Return type:

unicode

Derived from api method maya.OpenMaya.MFnDependencyNode.plugsAlias

removeAttribute(attribute)

Remove a dynamic attribute from a node.

Parameters :
attribute : PyNode

attribute to remove

Derived from api method maya.OpenMaya.MFnDependencyNode.removeAttribute

Undo is not currently supported for this method

reorderedAttribute(index)

Some nodes, such as the various animCurve nodes, require that their attributes be set in a specific order for proper operation. Usually this ordering is only important when the node is being created during file I/O.

Parameters :
index : int

the reordered index of the attribute

Return type:

PyNode

Derived from api method maya.OpenMaya.MFnDependencyNode.reorderedAttribute

setAlias(alias, name, plug, add=True)

The function sets the alias attribute.

Parameters :
alias : unicode

name of the alias.

name : unicode

name of the attribute for which we need an alias.

plug : PyNode

plug to the attribute for which we need an alias.

add : bool

boolean; a value of false indicates that the alias name has to be removed from the alias attribute list. Default value is true.

Return type:

bool

Derived from api method maya.OpenMaya.MFnDependencyNode.setAlias

setFlag(flag, state)

Sets the state of the specified flag for the node.

Parameters :
flag : int

flag to set

state : bool

new state to which the flag will be set

Derived from api method maya.OpenMaya.MFnDependencyNode.setFlag

Undo is not currently supported for this method

setName(name)

Sets the name of this node.

Parameters :
name : unicode

the new name for the node

Return type:

unicode

Derived from api method maya.OpenMaya.MFnDependencyNode.setName

typeName()

Returns the type name of this node. The string returned is the name of the node type as it is used in the ascii file format.

Return type:unicode

Derived from api method maya.OpenMaya.MFnDependencyNode.typeName

Previous topic

pymel.core.nodetypes.OffsetSurface

Next topic

pymel.core.nodetypes.OpticalFX

Core

Core Modules

Other Modules

This Page