Created
June 16, 2020 13:30
-
-
Save kickbase/9d5769576b1b68aee2872cc47683aa0b to your computer and use it in GitHub Desktop.
[Houdini] [Python] Disconnect selected nodes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for node in hou.selectedNodes(): | |
for inConnection in node.inputConnections(): | |
inIndex = inConnection.inputIndex() | |
inNode = inConnection.outputNode() | |
inNode.setInput(inIndex, None, 0) | |
for outConnection in node.outputConnections(): | |
outIndex = outConnection.inputIndex() | |
outNode = outConnection.outputNode() | |
outNode.setInput(outIndex, None, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment