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 ¶
setParmFloatValues(session
: hapi.Session, node_id
: int
, values_array
: list
of float
, start
: int
, length
: int
) → bool
Set (push) an array of parameter float 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 floats at least the size of length.
start
First index of range. Must be at least 0 and at most hapi.NodeInfo.parmFloatValueCount - 1.
length
Must be at least 1 and at most hapi.NodeInfo.parmFloatValueCount - start.