Houdini 20.0 hapi

hapi.setAttributeDictionaryArrayData function

Set attribute dictionary array data. The dictionary data should

Usage

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

Set attribute dictionary array data. The dictionary data should be provided as JSON-encoded strings.

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 dictionary 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