Houdini 20.0 hapi

hapi.setParmIntValues function

Set (push) an array of parameter int values.

Regardless of the values, when calling this function on a set of parameters, if any parameter has a callback function attached to it, that callback function will be called. For example, if the parameter is a button the button will be pressed.

In threaded mode, this is an async call!

This API will invoke the cooking thread if threading is enabled. This means it will return immediately. Use the status and cooking count APIs under DIAGNOSTICS to get a sense of the progress. All other API calls will block until the cook operation has finished.

Also note that the cook result won’t be of type hapi.statusType.CallResult like all calls (including this one). Whenever the threading cook is done it will fill the cook result which is queried using hapi.statusType.CookResult.

Usage

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

Set (push) an array of parameter int values.

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.

values_array

Array of integers at least the size of length.

start

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

length

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

hapi