Houdini 20.5 hapi

hapi.getInstancedPartIds function

Get the part ids that this instancer part is instancing.

Usage

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

Get the part ids that this instancer part is instancing.

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 instancer part id.

start

Should be less than part_id's hapi.PartInfo.instancedPartCount but more than or equal to 0.

length

Should be less than part_id's hapi.PartInfo.instancedPartCount - start.

Returns instanced_parts_array as a list of int.

hapi