View Single Post
Old 01-14-2019, 02:10 AM   #9
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 3,025
Default

Quote:
Originally Posted by mespotine View Post
I'm with you on that. Or at least addition of a function onprojectexit(ReaProject proj) as sometimes, running the atexit-function should happen as the very last thing before Reaper is quitting, even after all projects are closed already.

An onprojectexit(ReaProject proj)-function should be run before the project "proj" is closed.
yep - that would be the neatest solution which would give greatest control over how a script handles a Reaper project closing. But I'm not aware of any other 'interrupt' style function calls in Lua Reascript - maybe there's a reason for this - I've no idea. Hopefully something like this can be implemented.
__________________
Projects - Reascripts - Lua:
LBX Stripper | LBX Chaos Engine | LBX Floating FX Positioner | LBX SRD Smart Knobs
Donate via Paypal
lb0 is offline   Reply With Quote