Houdini 20.0 hapi

hapi.setAttributeFloat64Data function

Set 64-bit attribute float data.

Usage

setAttributeFloat64Data(session: hapi.Session, node_id: int, part_id: int, name: str, attr_info: hapi.AttributeInfo, data_array: list of float, start: int, length: int) → bool

Set 64-bit attribute float 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 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

An 64-bit float array at least the size of length * hapi.AttributeInfo.tupleSize.

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.

hapi