Views:24,650 |
||
Updated:May 18, 2006 |
Readership Level:Intermediate |
|
Tags: |
||
Nuke Versions:
|
Platforms:irix, linux, windows |
|
Owner: |
Language:English |
|
This will not return the node's name but it's ID so to get a selected node's name you would do something like this:
example:
puts
[knob [selected_node].name]
Again, you want Tcl to evaluate from the inside out: First you need it to find out the selected node's ID so you have to put "selected_node" into brackets to evaluate it first. Then you want to use that ID to find out it's name so you use brackets
for the knobs command just like before. Once the outer brackets are
evaluated you can print the result into the shell using "puts".
Another useful Nuke command is "knobs" to find out what knobs a certain node has:
syntax:
knobs {-a,w,d,v}
a,w,d andv are optional arguments to do the following:


Comments
Write a Comment