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

Reply
 
Thread Tools Display Modes
Old 09-13-2018, 10:49 PM   #1
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
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 Some of mine and my friends music projects on Spotify
tompad is offline   Reply With Quote
Reply

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 03:09 AM.


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