Houdini 20.5 hapi

hapi.setAttributeUInt8ArrayDataAsync function

Set unsigned 8-bit integer array attribute data asynchronously.

Usage

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

Set unsigned 8-bit integer array attribute data asynchronously.

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_UInt8 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.

Returns job_id as a int.

hapi