This makes it easy to load/save specific setups and exchange them between sessions of Houdini. You will be prompted via a file requester to select a file that was written via the Export Node tool.
The Import network function can also be called via python.
from OD import shelftools
shelftools.importNetwork(file=None)
# if no file is given, you'll pre prompted to select a file for import
Export makes it easy to load/save specific setups and exchange them between sessions of Houdini. Simply select a node, or a subnet of nodes of any kind, and you’ll be prompted for a filename to write to.
The Export network function can also be called via python.
from OD import shelftools
shelftools.exportNetwork(nodeFile=None, mode = None, nodes=None)
# nodeFile: Filename to be written, if none is given, you will be prompted
# mode : Export Mode: 0 = All; 1 = Selected Only
# nodes : Array of Nodes to export (can be a single [node])