Houdini 20.0 hapi

hapi.getTotalCookCount function

Get the specified node’s total cook count, including

Usage

getTotalCookCount(session: hapi.Session, node_id: int, node_type_filter: int, node_flags_filter: int, recursive: bool) → int

Get the specified node’s total cook count, including its children, if specified.

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.

node_type_filter

The node type by which to filter the children.

node_flags_filter

The node flags by which to filter the children.

recursive

Whether or not to include the specified node’s children cook count in the tally.

Returns count as a int.

hapi