Usage ¶
loadNodeFromFile(session
: hapi.Session, file_name
: str
, parent_node_id
: int
, node_label
: str
, cook_on_load
: bool
) → int
Loads and creates a previously saved node and all its contents from given file. The saved file must have been created by calling hapi.saveNodeToFile.
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.
file_name
The name of the file to be loaded
parent_node_id
The parent node id of the Geometry object.
node_label
The name of the new Geometry object.
cook_on_load
Set to True if you wish the nodes to cook as soon as they are created. Otherwise, you will have to call hapi.cookNode explicitly for each after you call this function.
Returns new_node_id as a int
.