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

Reply
 
Thread Tools Display Modes
Old 01-05-2019, 11:47 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
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 you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada 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: 12,109
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: 3,921
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: 302
Default

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

+1 supporting
bFooz is offline   Reply With Quote
Old 01-21-2019, 02:29 AM   #6
andyp24
Human being with feelings
 
andyp24's Avatar
 
Join Date: Mar 2016
Posts: 1,242
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: 7,432
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: 1,701
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
Location: Black Forest
Posts: 5,067
Default

Yep, I concur. Huge +1
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 07-01-2019, 09:16 AM   #10
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

I'm still all in for this one
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada 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: 302
Default

+100500
nappies is offline   Reply With Quote
Old 10-27-2021, 09:04 AM   #12
sephirious
Human being with feelings
 
sephirious's Avatar
 
Join Date: Sep 2020
Posts: 16
Default no undo (option or method) +1

i can really use this as well. i keep the undo history on screen just to undo lists of pitch and volume changes.,.,.,
__________________
http://axisproject.net
sephirious is offline   Reply With Quote
Old 11-11-2021, 03:12 AM   #13
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
Default

I am again in a situation where I need this for a script.

+ 1000
__________________
Youtube | Website | Twitter
nikolalkc is offline   Reply With Quote
Old 11-15-2021, 11:47 PM   #14
AZpercussion
Human being with feelings
 
Join Date: Oct 2019
Location: Moscow / Tbilisi
Posts: 912
Default

Yes, please, devs!
These API functions would be awesome!

I understand it's maybe difficult to exclude MainCommands from undo, but other functions should be excludable as a first step.
There are a lot of ideas and space to improve whole undo system, but as a first, maybe temporary, step UndoExclude_Begin() and UndoExclude_End() would be awesome.
AZpercussion 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 12:15 AM.


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