OpenMaya.MFnDependencyNode

bnFind DG node iterator.
bnGet Retrieve a single DG node.
__hash__ Hash value that can be relied on.
__str__ Name.

classmethod MFnDependencyNode.bnFind(pattern=None)[source]

DG node iterator.

The calling class defines the function set type for which the nodes need to be compatible with. It also represents the type of the objects yielded.

Categories: foundation.

Parameters:pattern (str) – Full name pattern of the DG nodes to match. Wildcards are allowed.
Yields:cls – The DG nodes found.

classmethod MFnDependencyNode.bnGet(pattern=None)[source]

Retrieve a single DG node.

The calling class defines the function set type for which the node needs to be compatible with. It also represents the type of the object returned.

Categories: foundation.

Parameters:pattern (str) – Full name pattern of the DG node to match. Wildcards are allowed.
Returns:The DG node found. If none or many were found, None is returned.
Return type:cls

MFnDependencyNode.__hash__()[source]

Hash value that can be relied on.

This is required because the original method returns different values for multiple instances pointing to a same object, thus making the MFnDependencyNode object not usable with hash-based containers such as dictionaries and sets.

Categories: fix.

Returns:The hash value representing this object.
Return type:int

MFnDependencyNode.__str__()[source]

Name.

It is helpful when interacting with the commands layer by not having to manually call the name() method each time a MFnDependencyNode object needs to be passed to a command.

Categories: fix.

Returns:The name.
Return type:str