FR - API reaper.atprojectexit(ReaProject proj, function)
* Request
API reaper.atprojectexit(ReaProject proj, function)
An API similar to reaper.atexit(function), but "function" would be run when the project is closing.
* Benefit
Make it possible to reset a reascript or close a reascript window when user close project and start a new.
* Reason
As for now the reascript and window stay open with values from the previuos project when closing project
and starts a new. And calling save function in reascript saves the previuos values to the new project then.
There is no way for the script to know the project has changed. (...are there?)
* Implementation Suggestion
Make an API similar to reaper.atexit(function) but make it run a function when we are closing a project.
* Begging
Please,please,please! Iḿ down on my knees!
*singing*Please release it, let it do!
|