I wanted to make my own shelf tool which can create a node inside all selected nodes, but then also connect it to the ‘display flagged’ node.
I was able to create a node inside all selected nodes, but not to make them connected.
import hou nodes = hou.selectedNodes() for n in nodes: clean = n.node(".").createNode("clean") print(clean.path())
In the for loop I already tried some variations of:
n.children() or chld = n.hou(".")...?
Also I tried using the:
soptoolutils.genericTool(kwargs, 'clean')
Anyone having a solution?
Thanks,
Chris