paya.runtime.nodes.DagNode#

class DagNode(*args, **kwargs)#

Inheritance

DagNode Entity Entity ContainerBase ContainerBase DependNode DependNode PyNode ProxyUnicode

getWorldPosition(plug=False)#

Returns the world translation of this DAG node.

Shorthand

gwp

Parameters

plug/p (bool) – return an attribute instead of a value; defaults to False

Returns

The position attribute or value.

Return type

Point or Vector

basename(stripNamespace=False, stripTypeSuffix=False, stripDagPath=True)#

Returns shorter versions of this node’s name.

Parameters
  • stripNamespace/sns (bool) – remove namespace information; defaults to False

  • stripDagPath/sdp (bool) – remove DAG path information; defaults to True

  • stripTypeSuffix/sts (bool) – removes anything that looks like a type suffix; defaults to False

Returns

the modified name

Return type

str

isControl(*state)#
Parameters

*state (bool) – if True, make this node a controller; if False, remove any controller tags; if omitted, return whether this node is a controller

Returns

bool or None

setPickWalkParent(parent)#

Sets the pick walk parent for this node. If there’s no controller tag, one will be added automatically.

Parameters

parent (str, PyNode, None) – the node to set as the pick walk parent; pass None to unparent this node (any existing controller tag will be preserved)

Returns

self

Return type

DagNode

getPickWalkParent()#
Returns

The pick walk parent for this node, if any.

Return type

None, DependNode