Houdini 20.5 hapi

hapi.setGroupMembership function

Set group membership.

Usage

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

Set 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 SOP node id.

part_id

Currently not used. Just pass 0.

group_type

The group type.

group_name

The group name.

membership_array

Array of ints that represent the membership of this group. Should be the size given by HAPI_PartInfo_GetElementCountByGroupType with group_type and the hapi.PartInfo of part_id.

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. When setting edge group membership, this parameter should be set to the number of points (which are used to implictly define the edges), not to the number edges in the group.

hapi