Skip to content

Instantly share code, notes, and snippets.

@MitchellKehn
Last active December 24, 2019 10:56
Show Gist options
  • Save MitchellKehn/2c1c9202ed0d921f5e88c61a352cf32a to your computer and use it in GitHub Desktop.
Save MitchellKehn/2c1c9202ed0d921f5e88c61a352cf32a to your computer and use it in GitHub Desktop.
[duplicate node] boilerplate for duplicating a node #nuke
node = nuke.toNode("myNode1")
[sel.setSelected(False) for sel in nuke.selectedNodes()]
node.setSelected(True)
nuke.nodeCopy("%clipboard%")
node.setSelected(False)
nuke.nodePaste("%clipboard%")
newNode = nuke.selectedNode()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment