H3D Tutorials
Nuke and Tcl - basics II
Nuke and Tcl - basics II Writing your own tcl procedureIf you want to tie your tcl code into Nuke's UI you should put it into an extra tcl procedure and store that in your plugin path to make sure Nuke has access to it. Here is how you do it:To write a tcl procedure you use the "proc&quo...
proc to toggle viewers inputs on and off
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] { &nbs...
Creating simple user interfaces
Creating simple user interfaces with tcl There is a bunch of commands in Nuke that allow the user to create simple UIs for tcl procs. Here is a list of them and some examples. Best to just copy/paste the snippets of example code into the Nuke shell to see what happens.message Shows an info dialog...
Iteration thru a script
This very quick tutorial goes into a little more bits than Frank's excellent set. Kudos to Frank!let's say you want to do certain things to a certain node type...for instance, you want to change blurs only...foreach $mynode [nodes] { if {[class $mynode] == "Blur"} { knob $mynode...
Nuke and Tcl - basics I
Nuke and Tcl - basics I Creating nodes To create a node simply type it's class and hit enter. create a blur node: Blur create the node without opening it's control panel: Blur {} create the node without opening it's control panel but make it selected: Blur -New create the node and ass...
Nuke and Tcl - intro
Nuke and Tcl - IntroNuke is entirely tcl based, which means that almost anything you can do with the tcl scripting language you can use to drive, manipulate and create Nuke scripts. To enter tcl code within Nuke you can simply use the terminal that you used to start the application from. This is ...