Houdini 20.5 hapi

hapi.getGroupMembershipOnPackedInstancePart function

Get group membership for a packed instance part

Usage

getGroupMembershipOnPackedInstancePart(session: hapi.Session, node_id: int, part_id: int, group_type: hapi.groupType, group_name: str, start: int, length: int) → (bool, list of int)

Get group membership for a packed instance part This functions allows you to get the group membership for a specific packed primitive 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. (should be a packed primitive)

group_type

The group type.

group_name

The group name.

start

Start offset into the membership array. Must be less than HAPI_PartInfo_GetElementCountByGroupType.

length

Should be less than or equal to the size of membership_array.

Returns a tuple of (membership_array_all_equal, membership_array).

hapi