4PointCutting: Trim content behind pasted items even if according edit setting is off. closes #5

This commit is contained in:
Ludwig Frühschütz 2020-09-22 21:09:02 +02:00
parent 6438d7c8da
commit 9817465681

View File

@ -182,6 +182,9 @@ select_dst_track_only()
--reaper.Main_OnCommand(40058, 0) -- paste item
reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWPASTE'), 0 ) -- SWS Paste
-- Remove content behind selected items (avoid overlapping). Only really needed if "Trim content behind media items when editing" is off.
reaper.Main_OnCommand( 40930, 0 ) -- Remove content (trim) behind items
-- Crossfade
local selected_items_count = reaper.CountSelectedMediaItems(0)
for i = 0, selected_items_count - 1 do -- select tracks with selected items...