Usage ¶
getPresetNames(session
: hapi.Session, buffer
: str
, buffer_length
: int
, preset_names_count
: int
) → list
of int
Gets the names of presets in an IDX file. hapi.getPresetCount must be called before calling this method. See the hapi.getPresetCount documentation for more information.
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. This should be the same buffer that was passed into hapi.getPresetCount.
buffer_length
Size of the buffer.
preset_names_count
Number of presets in the file. Should be the same as the count returned by hapi.getPresetCount
Returns preset_names_array as a list
of int
.