Houdini 20.5 hapi

hapi.setCustomString function

Adds the given string to the string table and returns

Usage

setCustomString(session: hapi.Session, string_value: str) → int

Adds the given string to the string table and returns the handle. It is the responsibility of the caller to manage access to the string. The intended use for custom strings is to allow structs that reference strings to be passed in to HAPI

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.

string_value

Actual string value (character array).

Returns handle_value as a int.

hapi