goknob.setValue("import script; script.func()") would that work?
On Tue, Nov 1, 2016 at 11:21 AM, Daniel Hartlehnert <dah...@gmx.de> wrote: > Ok, so now that i now how to add this knob :) > > I have about 300 lines of Python code i would like to be executed when > this knob is pressed. I now know how to assign the code to the knob thanks > to the double quotes, but isn’t there a more elegant solution? > Like having this code as a .py file and then calling it from the knob? But > if the script knob only takes a string, how would i do that? > > Daniel_______________________________________________ > Nuke-users mailing list > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users