Houdini 20.0 hapi

hapi.getNodeCookResultLength function

Gets the length of the cook result string (errors and warnings) of

Unlike hapi.composeNodeCookResult this node does not parse inside the node network. Only errors, warnings, and messages that appear on the specified node will be a part of the cook result string.

You MUST call hapi.getNodeCookResultLength before calling hapi.getNodeCookResult because hapi.getNodeCookResult will not return the real result and instead returns a cached version of the string that was created during the call to hapi.getNodeCookResultLength. The reason for this is that the length of the real status string may change between the call to hapi.getNodeCookResultLength and hapi.getNodeCookResult.

Usage

getNodeCookResultLength(session: hapi.Session, node_id: int, verbosity: hapi.statusVerbosity) → int

Gets the length of the cook result string (errors and warnings) of a specific node.

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.

verbosity

Preferred verbosity level.

Returns buffer_length as a int.

hapi