Houdini 20.5 hapi

hapi.getPresetCount function

Gets the number of presets in an IDX file.

Usage

getPresetCount(session: hapi.Session, buffer: str, buffer_length: int) → int

Gets the number of presets in an IDX file. hapi.getPresetNames should be called before hapi.getPresetCount is called again to prevent the previous values from being overwritten.

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.

buffer

Buffer to hold the preset data.

buffer_length

Size of the buffer.

Returns count as a int.

hapi