Having tons of frame buffers in Nuke is great but the viewer nodes' input pipes can get quite messy so here is a proc to toggle their visibility on and off.
I assigned "shift+enter" as the hotkey for this so in your menu.tcl you can do something like this:
menu "Other/hide viewer inputs" "shift+0xFF0D" HideViewerInputs
proc HideViewerInputs {} {
#loop through all nodes in the script
foreach cur_node [nodes] {
#if you find a node that is a viewer node...
if {[class $cur_node] == "Viewer"} {
#use the inverse of it's current knob "hide_input" as the new value
knob $cur_node.hide_input !$cur_node.hide_input
}
}
}
#loop through all nodes in the script
foreach cur_node [nodes] {
#if you find a node that is a viewer node...
if {[class $cur_node] == "Viewer"} {
#use the inverse of it's current knob "hide_input" as the new value
knob $cur_node.hide_input !$cur_node.hide_input
}
}
}
I assigned "shift+enter" as the hotkey for this so in your menu.tcl you can do something like this:
menu "Other/hide viewer inputs" "shift+0xFF0D" HideViewerInputs
Page 1 of 1
Author: rueter
Submitted: 2006-05-19 11:51:28 UTC
Tags:
Software: Nuke
Views: 13,937
Related Items
-
Reel To Reel Player Untextured 3D Model
$115.00 (USD) -
Reel To Reel Player 3D Model
$210.00 (USD) -
Cut off saw 3D Model
$80.00 (USD) -
Dinning chair and table 3D Model
$20.00 (USD) -
Quick and dirty medium/low res 45. Smith and Wesson handgun 3D Model
$25.00 (USD) -
Quill pen and ink bottle 3D Model
$20.00 (USD) -
Tire and Rim 3D Model
$9.00 (USD) -
Edge to Circle for Maya 2.0.0 (maya script)
$20.00 (USD) -
3D Scalpels, Kidney Dish and Sterilization Tray model 3D Model
$15.00 (USD)