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...
This will iterate through the entire script, find all the nodes of type Blur and change their size to 10.
Now, if you want to find out the class of a node, this command does it:
class [selected_node]
if you want to take all the blur nodes and set their input to a specific read do this:
But Uncle Throbby, how do i use this with multiple input nodes??!?!
Well, captain...here it is..simple!
Ok, it's late...enough nerding for me!
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.size 10
}
This will iterate through the entire script, find all the nodes of type Blur and change their size to 10.
Now, if you want to find out the class of a node, this command does it:
class [selected_node]
if you want to take all the blur nodes and set their input to a specific read do this:
foreach $mynode [nodes] {
if {[class $mynode] == "Blur"} {}
input $mynode 0 Read1
}
But Uncle Throbby, how do i use this with multiple input nodes??!?!
Well, captain...here it is..simple!
foreach $mynode [nodes] {
if {[class $mynode] == "Merge"} {}
input $mynode 0 Read1
input $mynode 1 Read2
}
Ok, it's late...enough nerding for me!
Page 1 of 1
Author: throb
Submitted: 2006-05-19 07:52:57 UTC
Tags:
Software: Nuke
Views: 14,088
Related Items
-
Universal UV Randomization script for Maya 1.1.0 (maya script)
$20.00 (USD) -
Render Window / viewport Batch Render Script for Maya 1.0.0 (maya script)
$20.00 (USD) -
F/A-22 A Raptor 3D Model
$32.00 (USD) -
S-47 Sukhoi F.A.V. 3D Model
$32.00 (USD) -
F/A-18E 3D Model
$139.00 (USD) -
E-3 Sentry A.W.A.C.S. 3D Model
$28.00 (USD) -
F-117 A Stealth Fighter 3D Model
$22.00 (USD) -
Nike ORDEM 4 SERIE A 3D Model
$31.00 (USD) -
ZiS 101 a sport 3D Model
$159.00 (USD)