Houdini 20.5 hapi

hapi.setVolumeVoxelIntData function

Set the values of a integer voxel in the volume.

Usage

setVolumeVoxelIntData(session: hapi.Session, node_id: int, part_id: int, x_index: int, y_index: int, z_index: int, values_array: list of int, value_count: int) → bool

Set the values of a integer voxel in the volume.

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.

x_index

The x index/coordinate of the voxel.

y_index

The y index/coordinate of the voxel.

z_index

The z index/coordinate of the voxel.

values_array

The values of the voxel.

value_count

Should be equal to the volume’s hapi.VolumeInfo.tupleSize.

hapi