Houdini 20.0 hapi

hapi.createHeightfieldInputVolumeNode function

Creates a volume input node that can be used with Heightfields

Note that when saving the Houdini scene using hapi.saveHIPFile the nodes created with this method will be green and will start with the name “input”.

Usage

createHeightfieldInputVolumeNode(session: hapi.Session, parent_node_id: int, name: str, xsize: int, ysize: int, voxelsize: float) → int

Creates a volume input node that can be used with Heightfields

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.

parent_node_id

The parent node network’s node id or -1 if the parent network is the manager (top-level) node. In that case, the manager must be identified by the table name in the operator_name.

name

The name of the volume to create. You can also pass None in which case the name will be “input#” where # is some number.

xsize

size of the heightfield in X

ysize

size of the heightfield in y

voxelsize

Size of the voxel

Returns new_node_id as a int.

hapi