June 29th, 2011,07:03 PM
You can derive the knobs of any node by simply copying the node and pasting the values into any text editor. Within the brackets for the node properties, the first value will be the knob, the following values will be the values of that knob.
For example, I made a text node "Text1"
Copying and pasting it you get this:
set cut_paste_input [stack 0]
version 6.2 v4
push $cut_paste_input
Text {
font C:/Windows/Fonts/arial.ttf
yjustify center
box {480 270 1440 810}
center {960 540}
name Text1
selected true
xpos -768
ypos 453
}
I know xpos is the knob and -768 is the value.
You can also hover over most properties in the properties pane to get a pop up note that tells you the name of the knob.
Simple syntax to get the value of a knob is like this:
print nuke.toNode('Text1')['xpos'].value()
That will return the Text1 xpos value... You can also put this in a variable instead of print it, or use setValue() instead of "value()" to change it via python.
Hope this helps.
-----
VFX Creative Director // Encore Hollywood
iMDB