Home Reference Houdini Object Model hou hou.Node 

hou.Node.createNode method

Creates a new node of type node_type_name as a child of the node on which it is called.

createNode(self, node_type_name, node_name=None, run_init_scripts=True, load_contents=True) → Node

If a node_name is specified, the command creates a new node with the given name. Otherwise, the node is created with a default name.

If run_init_scripts is True, the initialization script associated with the node type will be run on the new node.

If load_contents is True, any subnet contents will be loaded for custom subnet operators.

This function will raise hou.OperationFailed if the node is not a network. It will raise hou.PermissionError if it is called on a node inside a locked asset. It will raise hou.ObjectWasDeleted if it is called on a node that no longer exists in Houdini.

Replaces: opadd