Houdini 20.5 hapi

hapi.setAttributeInt16ArrayData function

Set 16-bit integer array attribute data.

Usage

setAttributeInt16ArrayData(session: hapi.Session, node_id: int, part_id: int, name: str, attr_info: hapi.AttributeInfo, data_fixed_array: list of HAPI_Int16, data_fixed_length: int, sizes_fixed_array: list of int, start: int, sizes_fixed_length: int) → bool

Set 16-bit integer array attribute data.

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 that contains the description for the attribute that is being set.

data_fixed_array

An array containing the HAPI_Int16 values of the attribute.

data_fixed_length

The total size of the data array. The size can be no greater than the hapi.AttributeInfo.totalArrayElements of the attribute.

sizes_fixed_array

An array of integers that contains the sizes of each attribute array. This is required because the attribute array for each geometry component can be of variable size.

start

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

sizes_fixed_length

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

hapi