Compare commits
4 Commits
66b60f558c
...
a9c88fe8a7
Author | SHA1 | Date | |
---|---|---|---|
a9c88fe8a7 | |||
df9ea26ba6 | |||
11af6dda0a | |||
7465bd9360 |
@ -176,11 +176,20 @@ select_dst_track_only()
|
|||||||
reaper.Main_OnCommand(40058, 0) -- paste item
|
reaper.Main_OnCommand(40058, 0) -- paste item
|
||||||
--reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWPASTE'), 0 ) -- SWS Paste
|
--reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWPASTE'), 0 ) -- SWS Paste
|
||||||
-- Crossfade (only with SWS extensions, "fill gaps")
|
-- Crossfade (only with SWS extensions, "fill gaps")
|
||||||
|
if sws_present then
|
||||||
|
-- select track with selected items
|
||||||
|
local selected_items_count = reaper.CountSelectedMediaItems(0)
|
||||||
|
for i = 0, selected_items_count - 1 do
|
||||||
|
local item = reaper.GetSelectedMediaItem(0, i)
|
||||||
|
local track = reaper.GetMediaItem_Track(item)
|
||||||
|
reaper.SetTrackSelected(track, true)
|
||||||
|
end
|
||||||
reaper.Main_OnCommand( 40290, 0 ) -- set time selection to selected items
|
reaper.Main_OnCommand( 40290, 0 ) -- set time selection to selected items
|
||||||
reaper.Main_OnCommand( 40320, 0 ) -- nudge left edge of time selection left
|
reaper.Main_OnCommand( 40320, 0 ) -- nudge left edge of time selection left
|
||||||
reaper.Main_OnCommand( 40323, 0 ) -- nudge right edge of time selection right
|
reaper.Main_OnCommand( 40323, 0 ) -- nudge right edge of time selection right
|
||||||
reaper.Main_OnCommand( 40718, 0 ) -- select items on selected tracks and in time selection
|
reaper.Main_OnCommand( 40718, 0 ) -- select items on selected tracks and in time selection
|
||||||
reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWFILLGAPSQUICKXFADE'), 0 ) -- fill gaps between selected items and crossfade
|
reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWFILLGAPSQUICKXFADE'), 0 ) -- fill gaps between selected items and crossfade
|
||||||
|
end
|
||||||
-- Move dstin marker according to edit mode
|
-- Move dstin marker according to edit mode
|
||||||
if edit_mode == 1 then
|
if edit_mode == 1 then
|
||||||
reaper.SetProjectMarker(mark_dstin_id, false, mark_dstin_pos + (mark_srcout_pos - mark_srcin_pos), 0, 'DST-IN_4Pcut')
|
reaper.SetProjectMarker(mark_dstin_id, false, mark_dstin_pos + (mark_srcout_pos - mark_srcin_pos), 0, 'DST-IN_4Pcut')
|
||||||
|
BIN
4PointCutting/screenshots/3markers.PNG
Normal file
BIN
4PointCutting/screenshots/3markers.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
4PointCutting/screenshots/3markers_1edit.PNG
Normal file
BIN
4PointCutting/screenshots/3markers_1edit.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Loading…
x
Reference in New Issue
Block a user