Houdini 20.0 hapi

hapi.isNodeValid function

Determine if your instance of the node actually still exists

Usage

isNodeValid(session: hapi.Session, node_id: int, unique_node_id: int) → bool

Determine if your instance of the node actually still exists inside the Houdini scene. This is what can be used to determine when the Houdini scene needs to be re-populated using the host application’s instances of the nodes. Note that this function will ALWAYS return hapi.result.Success.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

node_id

The node id.

unique_node_id

The unique node id from hapi.NodeInfo.uniqueHoudiniNodeId.

Returns answer as a bool.

hapi