f
f
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
 Advanced Search
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Nuke > Tutorials > tcl scripting > proc to toggle viewers inputs on and off > Page 1 Change background colorChange background colorChange background colorChange background color
proc to toggle viewers inputs on and off
Tutorial by frank rueter
Login to add a Bookmark 1 votes for an average rating of 5.00

Updated:   05/19/06

Works on:    Windows  Linux  MacOS-X
Nuke Versions:   4.x
Readership Level:   Basic
Owner:   rueter
Author Name:  frank rueter

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.


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
            }
        }
   }

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


.

Login to add a Bookmark 1 votes for an average rating of 5.00

Related Learning Tools
Nuke Related DVDs

No Results.
Nuke Related Books



The Art and Science of Digital Compositing
Global DVDs



Shake: Effective Keying Techniques

Top Rated Nuke Tutorials

1. proc to toggle viewers inputs on and off by frank rueter (05/19/06)
2. Nuke and Tcl - intro by frank rueter (05/17/06)
3. Nuke and Tcl - basics I by frank rueter (05/18/06)
4. Nuke and Tcl - basics II by frank rueter (05/22/06)
5. Iteration thru a script by throb (05/19/06)


Related Tips


Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 36 in /var/www/inc/fx_functions2.php on line 760

No Results to Display


More Tutorials by rueter

1. texture warping by frank rueter (11/21/06)
2. proc to toggle viewers inputs on and off by frank rueter (05/19/06)
3. Nuke and Tcl - basics II by frank rueter (05/22/06)
4. Creating simple user interfaces by frank rueter (05/19/06)
5. Nuke and Tcl - intro by frank rueter (05/17/06)






Sponsors

Sponsor

Contact Us | Post Jobs | Post News | Post Events