Houdini 20.0 hapi

hapi.setAnimCurve function

Set an animation curve on a parameter of an exposed node.

Usage

setAnimCurve(session: hapi.Session, node_id: int, parm_id: int, parm_index: int, curve_keyframes_array: list of hapi.Keyframe, keyframe_count: int) → bool

Set an animation curve on a parameter of an exposed node.

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

parm_id

The id of an exposed parameter within the node.

parm_index

The index of the parameter, if it is for example a 3 tuple

curve_keyframes_array

An array of hapi.Keyframe structs that describes the keys on this curve.

keyframe_count

The number of keys on the curve.

hapi