Houdini 21.0 hapi

hapi.getPresetCount function

Gets the number of presets in an IDX file. When this method is

Note that calling hapi.getPresetCount will overwrite the preset names that were previously stored in the internal buffer. Therefore, ensure that you have called hapi.getPresetNames before calling hapi.getPresetCount again.

Usage

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

Gets the number of presets in an IDX file. When this method is called, the names of the presets are stored in a single internal buffer from which they can be retrieved by calling hapi.getPresetNames.

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

A buffer containing the raw binary data of the .idx file.

buffer_length

Size of the buffer.

Returns count as a int.

hapi