Viewer Input Locks v1.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Golan Bend
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.
Requirements:
14.0, 13.2, 13.1, 13.0 or later
Windows
06 Apr 2023
86

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.
Please login in order to download these files.

Comments   

 
+1 # Vladislav Parfentev 2023-04-15 11:52
Thanks!
 
 
0 # Golan Bend 2023-04-18 08:16
Glad you like it! :)
 
 
0 # li zhaohui 2023-07-25 16:53
Can act on other Viewer nodes ?
 
 
0 # Golan Bend 2023-08-24 08:48
Sorry for the late reply. No, it doesn't work on other viewer nodes, but I could see a reason why you would want that.
Maybe in a future update.
 

You have no rights to post comments

We have 2164 guests and 71 members online