|
|
Thread Tools | Display Modes |
06-27-2020, 10:34 AM | #1 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,684
|
[6.12] Undo is not created when removing envelopes with SetTrackStateChunk
(pic)
Example script to reproduce: Code:
reaper.Undo_BeginBlock() track = reaper.GetSelectedTrack(0,0) _, chunk = reaper.GetTrackStateChunk( track, "", false ) reaper.SetTrackStateChunk( track, chunk:gsub("<VOLENV2.->\n", ""), false ) reaper.Undo_EndBlock( "Clear Track Vol Envelope", 1 ) No undo point is created even if different undo API is used: Code:
reaper.Undo_OnStateChangeEx( "Clear Track Vol Envelope", 1, -1 )
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
07-02-2020, 03:29 AM | #2 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,684
|
small bump
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
07-02-2020, 08:58 AM | #3 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,124
|
Thanks, fixing!
|
07-02-2020, 01:53 PM | #4 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,684
|
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
Thread Tools | |
Display Modes | |
|
|