PostageStamp Copy/Paste Fix

A script to tweak Nuke's Copy/Paste function so that Postage Stamps, when copied, connect to the source's input.

Updated: 27 March 2013

Author: CameronC

Compatible Nuke versions: 6.3 or later

Compatibility: Linux, Mac, Windows

This simple Nuke script was written in Python to solve the small issue of PostageStamp copy pasting. It forces PostageStamps nodes to connect to the input of the the one copied upon pasting. Also works on multiple PostageStamps and Groups of nodes, as long as all the postage stamps are connected to the same root.


It was really written because we tend to use a lot of postage stamps for linking but could easily be adapted to any other node you wish to do this with.


You can run this by droping the script in your .nuke folder or anywhere else Nuke's Pathing looks. And putting something like the below lines in Nuke’s menu.py file.

 

#PostageStamp Copy Paste
import poststampCopyPaste
menubar.addMenu( '&Edit' ).addCommand( 'Copy', poststampCopyPaste.copyHijack, 'Ctrl+C', icon='')
menubar.addMenu( '&Edit' ).addCommand( 'Paste', poststampCopyPaste.pasteHijack, 'Ctrl+V')

 

v1.1 - Fixed bug that would cause postage stamps to not connect to their proper inputs when copied with said input.

Sign in or register to download or rate.