I've written a new backdrop node that I want to call from a toolbar button. I can run my code from the script editor without problems over and over again, but when I put it in my toolbar it will only run once and then it throws an error on the second button push. Can anyone tell me what's wrong?
here's the backdrop script: a = nuke.nodes.BackdropNode(note_font_size = 50) txt = nuke.getInput('Change label', 'name me!') a['label'].setValue(txt) in the meny.py I'm calling it as: a.addCommand('myBackDrop', "nuke.createNode(\"myBackDrop\")") on the second button push my error is: RuntimeError('Syntax error at "\'label\'"',)
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python