node_asset

node_asset(node: Node) Optional[Node]

Return the asset node associated with another node.

The function checks first the node itself and its parent for a node of type “Asset”, then, if the node is in a DeformLayer, returns the asset associated to that layer.

Return type

Optional[Node]