Not tested, but this should work:
def testing():
...
import nuke.callbacks
import nuke.callbacks.addOnScriptSave(testing)
On 06/02/13 10:42, travisb wrote:
Hello all,
I'm trying to add a function, or anything for that matter to the
"onScriptSave" knob automatically at Nuke startup through the init.py
None of these seem to work:
nuke.addOnScriptSave(testing)
root.knob('onScriptSave').setValue("testing")
nuke.knob('onScriptSave').setValue("testing")
Any help is much appreciated!
Thanks,
Travis
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python