Houdini 20.5 hapi

hapi.setAttributeInt8UniqueData function

Set multiple attribute 8-bit int data to the same unique value.

Usage

setAttributeInt8UniqueData(session: hapi.Session, node_id: int, part_id: int, name: str, attr_info: hapi.AttributeInfo, data_array: list of HAPI_Int8, data_length: int, start_index: int, num_indices: int) → bool

Set multiple attribute 8-bit int data to the same unique value.

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.

name

Attribute name.

attr_info

hapi.AttributeInfo used as input for what tuple size. you want. Also contains some sanity checks like data type. Generally should be the same struct returned by hapi.getAttributeInfo.

data_array

A integer array at least the size of hapi.AttributeInfo.tupleSize.

data_length

An integer of at least the size of hapi.AttributeInfo.tupleSize.

start_index

First index of range. Must be at least 0 and at most hapi.AttributeInfo.count - 1.

num_indices

Must be at least 0 and at most hapi.AttributeInfo.count - start_index.

hapi