Houdini 20.5 hapi

hapi.getGroupMembership function

Get group membership.

Usage

getGroupMembership(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.

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.

group_type

The group type.

group_name

The group name.

start

Start offset into the membership array. Must be less than HAPI_PartInfo_GetElementCountByGroupType when it is a point or primitive group. When getting the membership information for an edge group, this argument must be less than the size returned by hapi.getEdgeCountOfEdgeGroup * 2 - 1.

length

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

Returns a tuple of (membership_array_all_equal, membership_array).

hapi