I'm working on a Python/PySide tool for getting/setting reference file paths. This is straight-forward when using Reference nodes. For example, the Python code would look something like:
import hou import nodesearch lop_network = hou.node('/stage') matcher = nodesearch.NodeType('Reference') found = matcher.nodes(lop_network, recursive=True, recurse_in_locked_nodes=False) # Get file paths paths = [] for node in found: num_files = node.parm('num_files').eval() for i in range(num_files): parm_name = 'filepath{}'.format(i + 1) path = node.parm(parm_name).eval() print('{node}/{parm}: {path}'.format( node=node.path(), parm=parm_name, path=path) ) paths.append(path) # Set file paths for node in found: num_files = node.parm('num_files').eval() for i in range(num_files): parm_name = 'filepath{}'.format(i + 1) node.parm(parm_name).set('$HIP/assets/asset.usd')
But how would I do this with Stage Manager nodes? They use a custom UI instead of the typical Houdini Node parm UI, and I can't find documentation for this.
Any ideas?