Houdini 20.0 hapi

hapi.getPresetBufLength function

Generate a preset blob of the current state of all the

Usage

getPresetBufLength(session: hapi.Session, node_id: int, preset_type: hapi.presetType, preset_name: str) → int

Generate a preset blob of the current state of all the parameter values, cache it, and return its size in bytes.

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 exposed node id.

preset_type

The preset type.

preset_name

Optional. This is only used if the preset_type is hapi.presetType.Idx. If None is given, the preset name will be the same as the name of the node with the given node_id.

Returns buffer_length as a int.

hapi