PYTHON

Duplicate with Inputs

Duplicate with Inputs

Here is a simple script to duplicate nodes along with all its input connections preserved.

How to create a shortcut alt+d for this script ?

Create a folder named ‘python’ in your .nuke folder and put this file inside.


Add this line to the init.py file:


nuke.pluginAddPath("python")


Then add theses lines to the menu.py file:


import duplicate_with_inputs


nuke.menu("Nuke").addMenu("Python").addCommand("Duplicate with Inputs", "duplicate_with_inputs.duplicate()", "alt+d")