Hi Ivan,
I had to look at the actual .nk file in a text editor to see what you made
there. How can I see and change the python script in the gui itself? How did
you add it to the node?
Thanks,
Ron Ganbar
email: ron...@gmail.com
tel: +44 (0)7968 007 309 [UK]
+972 (0)54 255 9765 [Israel]
url:
Hi Ron,
You can bake knobChanged callbacks (or other callbacks like onCreate) into a
node by filling its hidden knobChanged knob with your desired code as a
string.
For example:
n = nuke.createNode('Blur')
n['knobChanged'].setValue('if nuke.thisKnob().name() == size: print size
knob changed')
That's a really good tip. Cheers!
Ron Ganbar
email: ron...@gmail.com
tel: +44 (0)7968 007 309 [UK]
+972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/
On 11 July 2011 17:45, Ivan Busquets ivanbusqu...@gmail.com wrote:
Hi Ron,
You can bake knobChanged callbacks (or other
Hmm, something went funny with the formatting after copy/pasting. Here
it is again.
set cut_paste_input [stack 0]
version 6.2 v3
push $cut_paste_input
NoOp {
name NoOp1
knobChanged \nn = nuke.thisNode()\nk = nuke.thisKnob()\nif k.name()
in \['red', 'green', 'blue']:\n
Ok, something's going definitely wrong when I copy-paste this. Script
attached instead.
Sorry about that.
On Fri, Jul 8, 2011 at 11:40 PM, Ivan Busquets ivanbusqu...@gmail.com wrote:
Hmm, something went funny with the formatting after copy/pasting. Here
it is again.
set cut_paste_input
Does anyone know if there is a way to dynamically link/change tile_color
with user knobs? Say I have a gizmo with a check box for red,green, and
blue. If only the red is checked, I want the tile_color to be red, if
red and green are checked, yellow, just blue, blue, and so on. Is this