Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

View Poll Results: Add API reaper.atprojectexit(ReaProject proj, function)
That would be wonderful!! 3 100.00%
Pffzzsss! Why? 0 0%
API reaper. at.....What? Dont know what you talking about! 0 0%
Voters: 3. You may not vote on this poll

Thread Tools Display Modes
Old 09-13-2018, 10:49 PM   #1
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 461
Default 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!
ToDoList Obliques MusicMath Donation Mark4celeste Frid i ditt hjärta Eve & the Fisherman on Spotify
tompad is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.