View Single Post
Old 02-25-2022, 10:46 AM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

A workaround for the time being is this script:
Code:
reaper.Main_OnCommand(40930, 0) -- Remove content (trim) behind items
reaper.Undo_OnStateChange("Remove content (trim) behind items")
BTW.. Why the above code works but the following doesn't?
Code:
reaper.Undo_BeginBlock()
reaper.Main_OnCommand(40930, 0) -- Remove content (trim) behind items
reaper.Undo_EndBlock( "Remove content (trim) behind items", 4)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote