i have mad a button on a toolbar too which creates a node and add a new tab and python script button
now when i add the script is where i get issues
expo = nuke.PyScript_Knob("exports", "Export")
newNode.addKnob(expo)
expo.setValue(exportScript)
however because this script will write to a file i need it to write \n
but when it loads the script it reades the \n and performs it so in the button if i edit it it will be
writeTo.write('
please code me'
#i want it to be
writeTo.write('\nplease code me')
i tried making the button conation a function call but it would call the function as soon as nuke starts loading
any ideas
cheers
edit::
never mind
got it working now
Post a Comment