Viewer Input Locks

Adds checkboxes to the 'Viewer1' node properties with the connected node names next to it. With a checkbox 'checked' (locked) you disable the viewer node to change that index input node with another.

Updated: 6 April 2023

Author: kbueno

Compatible Nuke versions: 13.0 or later

Compatibility: Windows

Hi I just wanted to share a Python script i've been working on. Hope you like it. I only have a Windows computer to my at my disposal so I'm not sure if it works on Mac and Linux.

 

****** Only works when viewer node is called 'Viewer1' without '' ******

Viewer_locks.jpg

Adds checkboxes to the 'Viewer1' node properties with the connected node names next to it. With a checkbox 'checked' (locked) you disable the viewer node to change that index input node with another.

Extra With the nodes connected to the 'Viewer1' node you can now: -Set these nodes as input to a selected node (shift+index). -Open there properties without first selecting them (ctrl+alt+index).

Tips:
-You can quick open your viewer lock poperties with 'alt+v'. -You can find the viewer lock poperties shortcut in de nuke top bar 'viewer - viewer locks'. -Can you reconnect a locked input with 'alt+index'.

Default settings:
I set the default settings for the locks on 5,6,7 and 8. Those are mine offline, plate, write and render nodes. However you can change that to your liking in the GB_Viewer file.

 

Install:
1. Add the files 'GB_misc.py' & 'GB_Viewer.py' to the '.nuke' folder location on your computer. If you don't know where that is see: https://support.foundry.com/hc/en-us/articles/207271649-Q100048-Nuke-Directory-Locations.
2.If you don't have a 'menu.py' at the '.nuke' folder location drop this one in there. Otherwise copy everything except the 'import nuke' and paste it in your menu.py file.

 

MIT License

Copyright (c) 2023 DutchNukeTD

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Sign in or register to download or rate.