Houdini 20.0 hapi

hapi.setInputCurvePositionsRotationsScales function

Sets the positions for input curves, doing checks for

Usage

setInputCurvePositionsRotationsScales(session: hapi.Session, node_id: int, part_id: int, positions_array: list of float, positions_start: int, positions_length: int, rotations_array: list of float, rotations_start: int, rotations_length: int, scales_array: list of float, scales_start: int, scales_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. Additionally, adds rotation and scale attributes to the curve.

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.

positions_start

The index of the first position in positions_array.

positions_length

The size of the positions array.

rotations_array

A float array representing the rotation (rot) attribute. It will read the array assuming a tuple size of 4 representing quaternion values

rotations_start

The index of the first rotation in rotations_array.

rotations_length

The size of the rotations array.

scales_array

A float array representing the scale attribute. It will read the array assuming a tuple size of 3

scales_start

The index of the first scale in scales_array.

scales_length

The size of the scales array.

hapi