Simple Python question

Hello guys,
I just started using Python and I’m building a knob.
I need to take a value from a knob and simply transfer it to another knob. It’s like a basic expression but I need it scripted.

i tried

a = nuke.toNode(‘MyNode’).knob(‘myKnob’).value

nuke.toNode(‘myNode2’).knob(‘myKnob2).setValue(a)

I tried the second line alone with a given value and it works but when I try to initialize the variable the script stop working.

As I said I started Python today so maybe is a really stupid thing

Thank you

No Responses to “Simple Python question”

Post a Comment