def node(path: "char const *") -> "HOM_Node *": r""" hou.node Given a path string, return a Node object. Return None if the path does not refer to a node. USAGE node(path) -> hou.Node or None If the path starts with a /, Houdini will look for a node with that exact path. Otherwise, the Houdini searches relative to the current path. See hou.pwd for more information about Houdini's current path. For each occurrence of .. in the path, Houdini will move up one node from the current location. Raises hou.NotAvailable if you call it from MPlay. Be careful not to confuse this function with the class hou.Node. > >>> hou.node(\"/obj\") > <hou.Node at /obj> > >>> hou.node(\"/obj\").createNode(\"geo\") > <hou.ObjNode of type geo at /obj/geo1> > >>> hou.node(\"/obj\").createNode(\"geo\") > <hou.ObjNode of type geo at /obj/geo2> > >>> hou.node(\"/obj/geo1\") > <hou.ObjNode of type geo at /obj/geo1> > >>> hou.cd(\"/obj\") > >>> hou.node(\"geo1\") > <hou.ObjNode of type geo at /obj/geo1> > >>> hou.cd(\"/obj/geo2\") > >>> hou.node(\"../geo1\") > <hou.ObjNode of type geo at /obj/geo1> > >>> print hou.node(\"../geo3\") > None etc etc.. """ return _hou.node(path)
What is going on here, how is this function creating a hou.Node() instance? Is it something to do with function being hidden inside the _hou.pyd file?
Thanks for the python lesson