|
|
|
04-12-2019, 06:17 PM
|
#1
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Undo Begin and End block: no redo possible
I noticed something strange with Undo Begin and EndBlock and wonder why no one else stumbled across this.
There are several issues with these functions:
- the undo name of the script is displayed in the undo list (next to the help menu), but when opening the undo history, there is no entry.
- executing redo for an undone script does not work at all
Is this a bug or expected behavior?
|
|
|
04-13-2019, 02:58 AM
|
#2
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,269
|
I'm not sure what are you doing, but it shouldn't happen.
What do you need to store in the undo block? which extraflag parameter do you pass? -1 ?
I see they still have not included the extraflags documentation. schwa explained it in a recent pre release thread
|
|
|
04-13-2019, 03:23 AM
|
#3
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
I'm using cfilion's script "Set item end to cursor and resize trailing MIDI notes" (ReaPack).
|
|
|
04-14-2019, 10:38 AM
|
#4
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
bumpalicious
|
|
|
06-19-2019, 06:39 PM
|
#5
|
Human being with feelings
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
|
I've noticed this with Reaticulate as well. There are times with wrapping a bunch of mutations in an undo block has no effect. For example this stanza:
https://github.com/jtackaberry/reati...p/app.lua#L208
That bit of code does a number of deletions and insertions of MIDI events, but it seems to fly under the radar of undo history. Like your screen capture, there's no trace of it and it can't be undone.
|
|
|
06-19-2019, 06:45 PM
|
#6
|
Human being with feelings
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
|
BTW for future Googlers this is the thread heda referenced in which schwa describes the undocumented flags:
https://forum.cockos.com/showpost.ph...3&postcount=27
(I'm passing -1 in my case.)
|
|
|
06-19-2019, 06:54 PM
|
#7
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Thank you Tack for confirming! I was already thinking this is system specific.
|
|
|
06-21-2019, 03:09 PM
|
#8
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Thanks, added that info to my ReaScript-API-docs in the Reaper-Internals-thread.
|
|
|
06-21-2019, 04:16 PM
|
#10
|
Human being with feelings
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
|
Quote:
Originally Posted by juliansader
Others have also noticed it
|
Awesome, very helpful, thanks Julian. I wasn't searching for the right things, clearly.
|
|
|
06-21-2019, 04:21 PM
|
#11
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
I couldn’t find anything either, strange. And apparently this fact isn’t really widely spread!
Thanks Julian, have to put that in a sticky note!
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:27 AM.
|