Houdini 22.0 hapi

hapi.createInputCameraNode function

Creates a SOP Camera node which can then be configured with

Usage

createInputCameraNode(session: hapi.Session, parent_node_id: int, camera_name: str, node_label: str) → int

Creates a SOP Camera node which can then be configured with hapi.setInputCameraInfo and hapi.setInputCameraTransform.

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 node id of the parent OBJ node or SOP subnetwork node in which the input camera node should be created, or -1 to create a new dummy parent OBJ node for this input node.

camera_name

The name of the camera. The name of the camera will be added to the SOP camera primitive as a “name” attribute. You can also pass None if you want the default name to be used.

node_label

Give this input node a name for easy debugging. The node’s parent OBJ node and the Null SOP node will both get this given name with “input_” prepended. You can also pass None in which case the name will be “input#” where # is some number.

Returns node_id as a int.

hapi