Houdini 20.0 hapi

hapi.getAttributeInt8Data function

Get attribute 8-bit integer data.

Usage

getAttributeInt8Data(session: hapi.Session, node_id: int, part_id: int, name: str, attr_info: hapi.AttributeInfo, stride: int, start: int, length: int) → list of HAPI_Int8

Get attribute 8-bit integer 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 node id.

part_id

The part id.

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.

stride

Specifies how many items to skip over for each element. With a stride of -1, the stride will be set to attr_info->tuple_size. Otherwise, the stride will be set to the maximum of attr_info->tuple_size and stride.

start

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

length

Must be at least 0 and at most hapi.AttributeInfo.count - start. Note, if 0 is passed for length, the function will just do nothing and return hapi.result.Success.

Returns data_array as a list of HAPI_Int8.

hapi