Hi Frank, Yep, that's actually what I want - but I *also* want to trigger the same function on Nuke exit. And all of this without modifying the script file itself. So it was the perfect solution for me!
On Wed, Apr 29, 2015 at 8:31 AM Frank Harrison <fr...@thefoundry.co.uk> wrote: > just be aware, that callback isn't *just* triggered Nuke exits, but > any-time you close a script. > > F. > > On 29 April 2015 at 07:30, Frank Harrison <fr...@thefoundry.co.uk> wrote: > >> Glad to hear it! :) >> >> On 29 April 2015 at 07:26, Fredrik Averpil <fredrik.aver...@gmail.com> >> wrote: >> >>> Just chiming back in to say I solved my problems with callbacks! >>> http://docs.thefoundry.co.uk/nuke/90/pythonreference/ (click >>> nuke.callbacks in the left hand side navigation pane) >>> >>> Turns out that addOnScriptClose works great when you want to execute >>> something on Nuke exit. >>> >>> Thanks Justin, Frank and everyone else for their help! :) >>> >>> >>> Cheers, >>> Fredrik >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> >> -- >> Frank Harrison >> Senior Nuke Software Engineer >> The Foundry >> Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 >> Web: www.thefoundry.co.uk >> Email: frank.harri...@thefoundry.co.uk >> > > > > -- > Frank Harrison > Senior Nuke Software Engineer > The Foundry > Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 > Web: www.thefoundry.co.uk > Email: frank.harri...@thefoundry.co.uk > _______________________________________________ > 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 >
_______________________________________________ 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