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

Reply
 
Thread Tools Display Modes
Old 01-05-2019, 11:47 AM   #1
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,919
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.
__________________
Pronounce me with she/her, when referencing me, please. Thanks :)
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,388
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,642
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: 143
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,215
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: 726
Default

+1 please
andyp24 is online now   Reply With Quote
Old 04-29-2019, 01:45 PM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

needs some love
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 04-29-2019, 01:55 PM   #8
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 892
Default

I'm not a scripter (which is rather obvious from my posts lol) but I just wanted to chime in from the user perspective here.

The average user runs a LOT of scripts. For everything. Larger ones like Track Inspector and LBX Stripper, smaller ones like Julian's amazing MIDI scripts, etc.

Having to undo literally several times because a script created an undo point is a complete workflow killer. If I do something simple like transpose an item and have to hit undo 3 or 4 times to actually undo the command I just did it becomes really really tedious.

So please consider Mespotine's suggestion of UndoExclude_Begin(), UndoExclude_End(). It is really, really necessary. Especially since scripting is now going to become part of theme customization in Reaper 6.
Klangfarben is online now   Reply With Quote
Old 04-29-2019, 02:06 PM   #9
andyp24
Human being with feelings
 
Join Date: Mar 2016
Posts: 726
Default

Yes please
andyp24 is online now   Reply With Quote
Old 04-30-2019, 06:20 AM   #10
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 3,431
Default

Yes - would make life so so much easier.

One of my scripts uses JSFX utility plugins. The easiest way to communicate with these is via the sliders (yes I know gmem can be used - but that can also be far fiddlier depending on what I'm trying to do).

As soon as I change a slider - unless I change it back within a certain (short) amount of time (again often requiring a bunch of annoying extra code to keep the functionality correct) - then unwanted undo points get created!

I want to be able to completely temporarily disable the undo system when I communicate with these utility JSFX - none of the changes ever want to be undone for these plugins. And then of course to re-enable the undo system once I'm done.

Would be awesome.
__________________
Projects - Reascripts - Lua:
LBX Stripper | LBX Chaos Engine | LBX Floating FX Positioner | LBX SRD Smart Knobs
Donate via Paypal
lb0 is offline   Reply With Quote
Old 04-30-2019, 07:52 AM   #11
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

Yes, huge fan of lb0's stuff! Pretty please
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 05-20-2019, 09:12 AM   #12
earhax
Human being with feelings
 
Join Date: Nov 2015
Posts: 191
Default

Yes, I too would love to see this functionality added. It is sorely needed for so many non-linear workflows where carefully managing undo history is really important.
earhax is offline   Reply With Quote
Old 05-20-2019, 09:26 AM   #13
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 892
Default

Pretty please? This is starting to become a real drag when running multiple scripts. As a user I almost get PTSD using undo now because I don't know how many times I will have to hit undo to actually undo the thing I want. Workflow killer from both a user and a scripter standpoint.
Klangfarben is online now   Reply With Quote
Old 05-20-2019, 11:49 AM   #14
Neutronic
Human being with feelings
 
Neutronic's Avatar
 
Join Date: Sep 2013
Posts: 402
Default

+1 it would be nice to have it in many scripting scenarios.
Neutronic is offline   Reply With Quote
Old 05-20-2019, 11:56 AM   #15
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,689
Default

+1
But maybe it is not easy to do. That is why we don't have it.
heda is offline   Reply With Quote
Old 05-21-2019, 05:35 AM   #16
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,919
Default

Quote:
Originally Posted by heda View Post
+1
But maybe it is not easy to do. That is why we don't have it.
I think too. I would also imagine, that the whole undo-system in Reaper needs an extensive overhaul, as it's very shaggy in many ways (undoing stuff that's should not be part of the undo-point, mostly markers).
So I think, it would be worth several dev-cycles to get it right.

Nevertheless, as much as we can do with Reaper at this point, we definately need a stable way of undoing/not undoing things or it will become a mess further and further.
__________________
Pronounce me with she/her, when referencing me, please. Thanks :)
Ultraschall-API - 1111 ReaScript functions for Reaper
Reaper Internals - Developerdocs4Reaper

Last edited by mespotine; 06-03-2019 at 07:30 AM.
mespotine is offline   Reply With Quote
Old 06-02-2019, 09:11 AM   #17
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 5,610
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 online now   Reply With Quote
Old 07-01-2019, 09:09 AM   #18
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 892
Default

Bumping this for good measure...

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

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

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

+100500
nappies is offline   Reply With Quote
Old 07-01-2019, 03:00 PM   #22
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 3,431
Default

+inf - Yes please. Pretty please
__________________
Projects - Reascripts - Lua:
LBX Stripper | LBX Chaos Engine | LBX Floating FX Positioner | LBX SRD Smart Knobs
Donate via Paypal
lb0 is offline   Reply With Quote
Old 07-06-2019, 01:35 AM   #23
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 498
Default

Yes. This would be the thing to do
Dafarkias is offline   Reply With Quote
Old 09-13-2019, 01:12 AM   #24
MRMJP
Human being with feelings
 
MRMJP's Avatar
 
Join Date: May 2016
Location: Milwaukee, WI USA
Posts: 1,872
Default

+1 to have this taken care of sooner than later

I now have two custom scripts that would benefit from this and improve REAPER performance.
__________________
iMac Pro 3.0GHz 10-Core • 64GB RAM • SSD • MacOS 10.14.6 RME AES HDSPe
Mac Mini 3.2 GHz Intel Core i7 (6-Core) • 32GB RAM • SSD • MacOS 10.14.6 RME AES HDSPe
https://www.mysteryroommastering.com/ - https://www.justincarlperkins.com/
MRMJP is offline   Reply With Quote
Old 09-13-2019, 04:56 AM   #25
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 446
Default

+1
This might be one of the most requested thing from scripters
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11.6, MBP 15" 2012 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, SD2, Omnisphere, Wave Altiverb, PSP, VB3, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is online now   Reply With Quote
Old 09-14-2019, 12:18 AM   #26
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 977
Default

+1 from me too.
__________________
Cheers,
Andrew K
v6.03+dev0114 - January 14 2020 • Mac 10.12.+ • i7 Quad 2.9GHz • 24GB
Thonex is online now   Reply With Quote
Old 09-14-2019, 12:53 PM   #27
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,919
Default

Quote:
Originally Posted by lexaproductions View Post
+1
This might be one of the most requested thing from scripters
And one of my hopes for v6.

So... +6
__________________
Pronounce me with she/her, when referencing me, please. Thanks :)
Ultraschall-API - 1111 ReaScript functions for Reaper
Reaper Internals - Developerdocs4Reaper
mespotine is offline   Reply With Quote
Old 09-16-2019, 01:30 PM   #28
MRMJP
Human being with feelings
 
MRMJP's Avatar
 
Join Date: May 2016
Location: Milwaukee, WI USA
Posts: 1,872
Default

It's my hope for REAPER v5.984
__________________
iMac Pro 3.0GHz 10-Core • 64GB RAM • SSD • MacOS 10.14.6 RME AES HDSPe
Mac Mini 3.2 GHz Intel Core i7 (6-Core) • 32GB RAM • SSD • MacOS 10.14.6 RME AES HDSPe
https://www.mysteryroommastering.com/ - https://www.justincarlperkins.com/
MRMJP is offline   Reply With Quote
Old 09-21-2019, 10:40 AM   #29
deadtrick
Human being with feelings
 
Join Date: Sep 2019
Posts: 1
Default

+1 would definitely be helpful for future releases!
deadtrick is offline   Reply With Quote
Old 11-08-2019, 10:19 AM   #30
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,919
Default

+FFFFF19BC1
__________________
Pronounce me with she/her, when referencing me, please. Thanks :)
Ultraschall-API - 1111 ReaScript functions for Reaper
Reaper Internals - Developerdocs4Reaper
mespotine is offline   Reply With Quote
Old 11-20-2019, 08:02 AM   #31
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 892
Default

Bumpy bumpy. Could really use some love on this from the developers. Scripters are having to do crazy workarounds just to try and limit the amount of undos. And I'm getting really tired of having to hit undo 4 times to undo the action I just triggered.

When you have this many scripters asking for something, you know it's something that is REALLY needed.

Thanks for your consideration.
Klangfarben is online now   Reply With Quote
Old 11-24-2019, 02:53 AM   #32
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

A friendly v6 rc bump.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 12-20-2019, 09:20 AM   #33
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,919
Default

Jingle Bump, jingle bump, jingle all the way...
__________________
Pronounce me with she/her, when referencing me, please. Thanks :)
Ultraschall-API - 1111 ReaScript functions for Reaper
Reaper Internals - Developerdocs4Reaper
mespotine is offline   Reply With Quote
Old 12-20-2019, 10:11 AM   #34
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,388
Default

+1 from me too (again)

Personal use case example:
I was fixing/rewriting an SWS exported API function some time ago. Unlike in the original code which didn't create any undo point I used some Main_OnCommand() actions and things like SetEditCurPos() in the fix because it was easier to do ().
Now there's a report that this API function creates an unnecessary undo point because of this and I don't know how to solve it currently as we have no control over creating undo points when using native actions / parts of the API.

(Sure I could wrap it in an undo block but that again wouldn't be original behaviour).

Last edited by nofish; 12-20-2019 at 10:19 AM.
nofish is offline   Reply With Quote
Old 12-20-2019, 10:49 AM   #35
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

Triple bump!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 12-21-2019, 09:50 AM   #36
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 892
Default

It's Xmas time Devs. Would be a great addition under the tree!!
Klangfarben is online now   Reply With Quote
Old 01-10-2020, 09:11 PM   #37
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 596
Default

Like Klangfarben, I'm no scripter, but I feel the effects of these issues as a user every day.

Quote:
Originally Posted by mespotine View Post
I would also imagine, that the whole undo-system in Reaper needs an extensive overhaul, as it's very shaggy in many ways (undoing stuff that's should not be part of the undo-point, mostly markers).
So I think, it would be worth several dev-cycles to get it right.

Nevertheless, as much as we can do with Reaper at this point, we definately need a stable way of undoing/not undoing things or it will become a mess further and further.
I think this is bang on. The extra undo points are even more unwelcome when you consider the constant interrupts to the audio stream that are caused by the undo/redo actions, which I posted about here - https://forum.cockos.com/showthread.php?p=2223680

Justin weighed on that thread saying there was room for improvement and it's on the list. So hopefully this thread will also get a look in.

I'm also very much hoping that the undo system gets a proper overhaul. I know it's not a flashy new feature like embedded UI's or HiDPI functionality but it's crucial.
Don't get me wrong, I love both of those, but this is such an important ground-level function, it's something we're all using probably hundreds of times in a long session, so it's absolutely worth taking the time to make it the best it can be. I would be hugely grateful.
Joe90 is offline   Reply With Quote
Old 01-14-2020, 03:03 PM   #38
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

Bumperoni with Pesto and Parmesan!

The scripters of our community would really appreciate it
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 01-15-2020, 11:14 PM   #39
Archie
Human being with feelings
 
Archie's Avatar
 
Join Date: Oct 2017
Location: Russia
Posts: 60
Default

+1 from me, certainly a very necessary function
__________________
=================================
ReaPack| Archie-ReaScript: Discussion | Donate
Archie is offline   Reply With Quote
Old 02-11-2020, 01:51 PM   #40
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,321
Default

Monthly bump
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   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 04:00 PM.


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