Houdini 20.5 hapi

hapi.getCurveCounts function

Retrieve the number of vertices for each curve in the part.

Usage

getCurveCounts(session: hapi.Session, node_id: int, part_id: int, start: int, length: int) → list of int

Retrieve the number of vertices for each curve in the part.

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

The part id.

start

The index of the first curve.

length

The number of curves' counts to retrieve.

Returns counts_array as a list of int.

hapi