Houdini 20.5 hapi

hapi.getVolumeBounds function

Get the bounding values of a volume.

Usage

getVolumeBounds(session: hapi.Session, node_id: int, part_id: int) → (float, float, float, float, float, float, float, float, float)

Get the bounding values of a 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.

Returns a tuple of (x_min, y_min, z_min, x_max, y_max, z_max, x_center, y_center, z_center).

hapi