Old 01-05-2019, 11:47 AM   #1
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 2,086
Default API: UndoExclude_Begin(), UndoExclude_End()

Sometimes I use functions, that'll create UndoPoints, even if it's not neccessary for ny script at all, spamming the UndoList for the user.
For that, I would love to exclude parts of my script from undo-management, with: UndoExclude_Begin(), UndoExclude_End()

That way, I could decide, what to include into an UndoState and what not.
That kind of precision is good for the user of the script, so I only Undo stuf necessary.
__________________
Use she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1111 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper
mespotine is offline   Reply With Quote
Old 01-05-2019, 02:30 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,515
Default

+1, could use this too
nofish is offline   Reply With Quote
Old 01-05-2019, 02:39 PM   #3
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,702
Default

+1, would use it!
Edgemeal is offline   Reply With Quote
Old 01-05-2019, 04:23 PM   #4
nappies
Human being with feelings
 
nappies's Avatar
 
Join Date: Dec 2017
Posts: 147
Default

+1 to this FR
nappies is offline   Reply With Quote
Old 01-20-2019, 02:08 PM   #5
bFooz
Human being with feelings
 
bFooz's Avatar
 
Join Date: Jul 2010
Location: Slovakia
Posts: 1,221
Default

+1 supporting
__________________
Donations | Mixing & Mastering Services
bFooz is offline   Reply With Quote
Old 01-21-2019, 02:29 AM   #6
andyp24
Human being with feelings
 
Join Date: Mar 2016
Posts: 739
Default

+1 please
andyp24 is offline   Reply With Quote
Old 06-02-2019, 09:11 AM   #7
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 5,637
Default

Quote:
Originally Posted by mespotine View Post
Sometimes I use functions, that'll create UndoPoints, even if it's not neccessary for ny script at all, spamming the UndoList for the user.
For that, I would love to exclude parts of my script from undo-management, with: UndoExclude_Begin(), UndoExclude_End()

That way, I could decide, what to include into an UndoState and what not.
That kind of precision is good for the user of the script, so I only Undo stuf necessary.
Aha!

So that is what is going on with all those strange undo entries filling up my buffer, even though I do not touch the JSFX, just start/stop playing. And when the buffer grows beyond 3 MB or so, Reaper starts to stutter on play (https://forum.cockos.com/showthread....28#post2141552).

Yes, this is very much needed.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Old 07-01-2019, 09:09 AM   #8
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 927
Default

Bumping this for good measure...

It's really a problem for both users and scripters alike at this point.
Klangfarben is offline   Reply With Quote
Old 07-01-2019, 09:12 AM   #9
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,397
Default

Yep, I concur. Huge +1
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-01-2019, 09:16 AM   #10
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 2,086
Default

I'm still all in for this one
__________________
Use she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1111 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper
mespotine is offline   Reply With Quote
Old 07-01-2019, 12:14 PM   #11
nappies
Human being with feelings
 
nappies's Avatar
 
Join Date: Dec 2017
Posts: 147
Default

+100500
nappies 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 11:44 PM.


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