shuffleFromViewer

Sets a shuffle node to layer currently being shown the viewer and vice versa.

Updated: 15 December 2020

Author: Conrad

Compatible Nuke versions: 10.0 or later

Compatibility: Linux, Mac, Windows

You can watch a video demo of this tool here: https://www.youtube.com/watch?v=AiVtWjrtDlk

When I'm working with CG renders that include excesive numbers of AOVs I find it a real pain to look through and find the ones I need to work with. I found the easiest way to go through them was the view the render and then use the Page Up/Page Down keys to change the layer that the viewer is showing. But once I found a layer I wanted I would have to go back to the node graph, create a shuffle node and then find the layer again.

I created this python script to speed up the process. Now, once I find a layer I want I can press CTRL+ALT+SHIFT+S (couldn't think of a better keybaord shortcut) and the script will automatically create a new shuffle node with the first in set to whatever layer I was viewing. If one or more shuffle nodes were already selected in the Node Graph then the script will change the first in of these nodes, rather than creating new nodes.

I thought I may as well also create the reverse script, so if you have a shuffle node selected it you can set the viewer to view the matching layer with CTRL+ALT+SHIFT+V.

I've tried to write it so that it will create the new Shuffle 2 node if you are using Nuke 12, but if that fails it will create an old Shuffle node if you are using an older version of Nuke, but I haven't had access to Nuke 11 to test it. Please let me know if it doesn't work.

To install it, download this file and move it to wherever you keep your python scripts and just add import shuffleFromViewer to your menu.py

You can watch a video demo of this tool here: https://www.youtube.com/watch?v=AiVtWjrtDlk

When I'm working with CG renders that include excesive numbers of AOVs I find it a real pain to look through and find the ones I need to work with. I found the easiest way to go through them was the view the render and then use the Page Up/Page Down keys to change the layer that the viewer is showing. But once I found a layer I wanted I would have to go back to the node graph, create a shuffle node and then find the layer again.

I created this python script to speed up the process. Now, once I find a layer I want I can press CTRL+ALT+SHIFT+S (couldn't think of a better keybaord shortcut) and the script will automatically create a new shuffle node with the first in set to whatever layer I was viewing. If one or more shuffle nodes were already selected in the Node Graph then the script will change the first in of these nodes, rather than creating new nodes.

I thought I may as well also create the reverse script, so if you have a shuffle node selected it you can set the viewer to view the matching layer with CTRL+ALT+SHIFT+V.

I've tried to write it so that it will create the new Shuffle 2 node if you are using Nuke 12, but if that fails it will create an old Shuffle node if you are using an older version of Nuke, but I haven't had access to Nuke 11 to test it. Please let me know if it doesn't work.

To install it, download this file and move it to wherever you keep your python scripts and just add import shuffleFromViewer to your menu.py

Version 1.1

Added an extra line (line 31) to switch the viewer back to RGBA after creating the shuffle node. This is commented out by default, simply remove the # at the start of line 31 to enable this option.

Sign in or register to download or rate.