Houdini 20.0 hapi

hapi.getVolumeVoxelIntData function

Retrieve integer point values of the voxel at a specific

Usage

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

Retrieve integer point values of the voxel at a specific index. Note that you must call hapi.getVolumeInfo prior to this call.

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.

value_count

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

Returns values_array as a list of int.

hapi