Houdini 20.0 hapi

hapi.getStatusStringBufLength function

Return length of string buffer storing status string message.

If called with hapi.statusType.CookResult this will actually parse the node networks for the previously cooked asset(s) and aggregate all node errors, warnings, and messages (depending on the verbosity level set). Usually this is done just for the last cooked single asset but if you load a whole Houdini scene using hapi.loadHIPFile then you’ll have multiple “previously cooked assets”.

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

Usage

getStatusStringBufLength(session: hapi.Session, status_type: hapi.statusType, verbosity: hapi.statusVerbosity) → int

Return length of string buffer storing status string message.

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.

status_type

One of hapi.statusType.

verbosity

Preferred verbosity level.

Returns buffer_length as a int.

hapi