Returns a new MFnDependencyNode function set, attached to the specified Maya node.
Constructor & Destructor Documentation
OpenMaya.MFnDependencyNode.__init__
(
)
Initialize self. See help(type(self)) for accurate signature.
Member Function Documentation
OpenMaya.MFnDependencyNode.__new__
(
)
static
Create and return a new object. See help(type) for accurate signature.
OpenMaya.MFnDependencyNode.absoluteName
(
)
Returns the absolute name of this node. The absolute name of a node is the full namespace path starting at (and including) the root namespace, down to (and including) the node itself. Regardless of relative name mode, absoluteName() will always return a full namespace path prefixed with a leading colon (the root namespace). If the underlying node is a DAG node, then absoluteName() does not guarantee uniqueness, that is, two dependency nodes could have the same absoluteName(). In cases like this the uniqueName() method will guarantee that the name uniquely identifies the node.
Adds content info to the specified table from a file path attribute.
OpenMaya.MFnDependencyNode.affectsAnimation
(
)
Returns true if the changes to the node may affect animation.
OpenMaya.MFnDependencyNode.allocateFlag
(
)
static
Allocates a flag on all nodes for use by the named plugin and returns the flag's index.
Name:
allocateFlag(plugin)
Parameters:
plugin - string
Returns:
int
Description:
Allocates a flag on all nodes for use by the named plugin. Returns the flag's index. Raises a ValueError if there are no unallocated node flags available.
OpenMaya.MFnDependencyNode.attribute
(
)
Returns an attribute of the node, given either its index or name.
Creates a new node of the given type, using the nodeName provided, attaches it to the function set and returns it in an MObject. If no nodeName is given the node's type name will be used, followed by a number to ensure uniqueness.
Creates a new node of the given type, using the nodeName provided, attaches it to the function set and returns it in an MObject. If no nodeName is given the node's type name will be used, followed by a number to ensure uniqueness.
OpenMaya.MFnDependencyNode.deallocateAllFlags
(
)
static
Deallocates all node flags which are currently allocated to the named plugin.
Name:
deallocateAllFlags(plugin)
Parameters:
plugin - string
Returns:
None
Description:
Deallocates all node flags which are currently allocated to the named plugin.
OpenMaya.MFnDependencyNode.deallocateFlag
(
)
static
Deallocates the specified node flag, which was previously allocated by the named plugin using allocateFlag().
Name:
deallocateFlag(plugin, flag)
Parameters:
plugin - string
flag - int
Returns:
None
Description:
Deallocates the specified node flag, which was previously allocated by the named plugin using allocateFlag().
OpenMaya.MFnDependencyNode.dgCallbackIds
(
)
Returns DG timing information for a specific callback type, broken down by callbackId.
Signature:
dgCallbackIds(timerType, callbackName)
Parameters:
timerType - DG Timer Type constant
callbackName - string
Returns a tuple containing an array of callback ids as its first element and an array of doubles as its second element. These represent the callback timer values for the specified timerType and callbackName, separated out per callback ID.
OpenMaya.MFnDependencyNode.dgCallbacks
(
)
Returns DG timing information broken down by callback type.
Returns a tuple containing a list of callback type names as its first element and an array of doubles as its second element. These represent the callback timer values for the specified timer type, grouped by type of callback.
OpenMaya.MFnDependencyNode.dgTimer
(
)
Returns a specific DG timer metric for a given timer type.
Signature:
dgTimer(metric, type)
Parameters:
metric - DG Timer Metric constant
type - DG Timer Type constant
Returns:
float
Description:
Returns the timer value for the given metric and type.
Returns all of the node's attribute aliases in a tuple. Each element of the tuple is itself a tuple containing a pair of strings representing the attribute's alias and its real name.
OpenMaya.MFnDependencyNode.getConnections
(
)
Returns all the plugs which are connected to attributes of this node.
Sets content info in the specified attribute from the table.
OpenMaya.MFnDependencyNode.setFlag
(
)
Sets the state of the specified node flag.
Signature:
setFlag(flag, state)
Parameters:
flag - int
state - bool
Returns:
Reference to self
Description:
Sets the state of the specified node flag, which must previously have been allocated by a call to allocateFlag().
OpenMaya.MFnDependencyNode.setName
(
)
Sets the node's name.
Signature:
setName(name)
Parameters:
name - string
Returns:
string
Description:
Sets the node's name. If there is a conflict with another node the name will be modified to make it unique. The name actually used is returned.
OpenMaya.MFnDependencyNode.setUuid
(
)
Sets the node's UUID.
OpenMaya.MFnDependencyNode.uniqueName
(
)
For a DAG node, the unique name of a node is the full namespace path starting at (and including) the root namespace, down to (and including) the node itself. For a non-DAG node, the uniqueName is just its name.