Skip to content

Commit

Permalink
Auto disable trim content behind media items when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Feb 3, 2025
1 parent e633c82 commit e8286c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ReaClassical/ReaClassical_3-point Insert Edit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ end
function main()
PreventUIRefresh(1)
Undo_BeginBlock()
Main_OnCommand(41121,0) -- Options: Disable trim content behind media items when editing
local proj_marker_count, source_proj, dest_proj, dest_in, _, _, _, _, source_count, pos_table, _ = markers()

if proj_marker_count == 1 then
Expand Down
2 changes: 1 addition & 1 deletion ReaClassical/ReaClassical_Delete With Ripple.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
function main()
PreventUIRefresh(1)
Undo_BeginBlock()
Main_OnCommand(40927, 0) -- Options: Enable auto-crossfade on split
Main_OnCommand(41121,0) -- Options: Disable trim content behind media items when editing
if source_markers() == 2 then
local focus = NamedCommandLookup("_BR_FOCUS_ARRANGE_WND")
Main_OnCommand(focus, 0) -- BR_FOCUS_ARRANGE_WND
Expand Down
1 change: 1 addition & 0 deletions ReaClassical/ReaClassical_Insert with timestretching.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ end
function main()
PreventUIRefresh(1)
Undo_BeginBlock()
Main_OnCommand(41121,0) -- Options: Disable trim content behind media items when editing
ripple_lock_mode()
local proj_marker_count, source_proj, dest_proj, _, _, dest_count, _, _, source_count, _, _ = markers()

Expand Down
1 change: 1 addition & 0 deletions ReaClassical/ReaClassical_S-D Edit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function main()
return
end

Main_OnCommand(41121,0) -- Options: Disable trim content behind media items when editing
ripple_lock_mode()
local colors = get_color_table()
if dest_count + source_count == 3 and pos_table ~= nil then -- add one extra marker for 3-point editing
Expand Down

0 comments on commit e8286c0

Please sign in to comment.