Houdini 20.5 hapi

hapi.createInputNode function

Creates a simple geometry SOP node that can accept geometry input.

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

createInputNode(session: hapi.Session, parent_node_id: int, name: str) → int

Creates a simple geometry SOP node that can accept geometry input. Inside the specified parent node, this will create a Null SOP you can set the geometry of using the geometry SET APIs. You can then connect this node to any other node as a geometry input.

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 node should be created, or -1 to create a new dummy parent OBJ node for this input node.

name

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