Houdini 20.5 hapi

hapi.setInputCurvePositions function

Sets the positions for input curves, doing checks for

Usage

setInputCurvePositions(session: hapi.Session, node_id: int, part_id: int, positions_array: list of float, start: int, length: int) → bool

Sets the positions for input curves, doing checks for curve validity, and adjusting the curve settings accordingly. Will also cook the 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 node id.

part_id

Currently unused. Input asset geos are assumed to have only one part.

positions_array

A float array representing the positions attribute. It will read the array assuming a tuple size of 3. Note that this function does not do any coordinate axes conversion.

start

The index of the first position in positions_array.

length

The size of the positions array.

hapi