Regardless of the value, when calling this function on a parameter, if that 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 ¶
setParmIntValue(session
: hapi.Session, node_id
: int
, parm_name
: str
, index
: int
, value
: int
) → bool
Set single parm int value by name.
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.
parm_name
The parm name.
index
Index within the parameter’s values tuple.
value
The int value.