Houdini 20.5 hapi

hapi.getParmStringValues function

Fill an array of parameter string handles. These handles must

Usage

getParmStringValues(session: hapi.Session, node_id: int, evaluate: bool, start: int, length: int) → list of int

Fill an array of parameter string handles. These handles must be used in conjunction with hapi.getString to get the actual string values. This is more efficient than calling hapi.getParmStringValue individually for each parameter value.

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

evaluate

Whether or not to evaluate the string expression. For example, the string “$F” would evaluate to the current frame number. So, passing in evaluate = False would give you back the string “$F” and passing in evaluate = True would give you back “1” (assuming the current frame is 1).

start

First index of range. Must be at least 0 and at most hapi.NodeInfo.parmStringValueCount - 1.

length

Must be at least 1 and at most hapi.NodeInfo.parmStringValueCount - start.

Returns values_array as a list of int.

hapi