Relinker is a Nuke tool for relinking footage automatically. It was developed to be used in a small independent film production environment where artists would typically work off their hard drives on multiple locations with different computers. The Nuke scripts we worked with at the time generally had a lot of different read nodes. Instead of losing time relinking nodes manually, we wrote this Python tool to automate the task. Video demonstration: https://vimeo.com/103858180
This script loops through all selected nodes and checks if the node has a file knob. If a file knob is present, the path will be opened in the OS file manager/browser. The user will be notified if nothing is selected or if the user does not select any nodes that have an existing file-path. If a selected node has a nonexistent path, this will be printed in the script editor, and the script will continue to process the next selected node. All paths are tested for an existing file. However, due to rendered files being frequently opened and deleted, write nodes only test for an existing directory.
Convert CornerPin From/To transformation into CornerPin extra matrix
Convert a gizmo into group. All connections remain. This script is useful if you hand your nuke scripts to other machines where the gizmos aren't installed. So with gizmoToGroup you make sure that your scripts can be read on other machines as well.
Nuke frame range fixer for readnodes
A smarter GoTo command
Keyboard shortcut to open the folder of the path currently on the clipboard, or of file knobs on selected nodes. Works with TCL paths and paths relative to the project directory.
Converts a hex value to a linear RGB float using Nuke's standard sRGB to Linear LUT
spawn FrameHold to extract still frames
The idea was not having to copy/paste the IBK color node and set erode to zero and then increase the patch black, etc. Instead you can set up your IBK color node once, select it, hit the shortcut a couple of times and all values like screen type, blacks, whites will be copied over to the new IBK color node. The erode will be set to zero and the patch black doubles each time to get the screen filled up faster. The lines for my menu.py look like this: import ibkStack myMenu.addCommand('ibkStack', 'ibkStack.ibkStack()', 'shift+alt+i')