Usage ¶
getNodeFromPath(session
: hapi.Session, parent_node_id
: int
, path
: str
) → int
Get the id of the node with the specified path.
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
If path does not start with “/”, search for the path relative to this node. Provide -1 if path is an absolute path.
path
The path of the node. If the path does not start with “/”, it is treated as a relative path from the node specified in parent_node_id.
Returns node_id as a int
.