Advertisement
yashpolke

Disconnect_all_nodes

Nov 19th, 2015
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import hou
  2. def main():
  3.     for i in hou.selectedNodes():
  4.         node = i.path()
  5.         numNodesConnected = len(i.inputs())
  6.         for aNode in i.inputs():
  7.             nameNodesConnected = aNode.name()
  8.             hou.hscript("opunwire %s 0"%node)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement