Skip to content

Commit

Permalink
Release Set project length limit to edit cursor position v1.01 (#1449)
Browse files Browse the repository at this point in the history
- enable project limit, if not already enabled
  • Loading branch information
amagalma authored Oct 25, 2024
1 parent 48b7a9d commit 03c2622
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
-- @description Set project length limit to edit cursor position
-- @author amagalma
-- @version 1.00
-- @version 1.01
-- @changelog - enable project limit, if not already enabled
-- @about - requires SWS extensions


if reaper.APIExists("SNM_SetDoubleConfigVar") then
reaper.SNM_SetDoubleConfigVar("projmaxlen", reaper.GetCursorPosition())
if reaper.SNM_GetIntConfigVar("projmaxlenuse", "-1234") ~= 1 then
reaper.SNM_SetIntConfigVar("projmaxlenuse", 1)
end
reaper.UpdateTimeline()
else
reaper.MB("Please, install SWS Extensions and run again.", "SWS Extensions are not installed!", 0)
Expand Down

0 comments on commit 03c2622

Please sign in to comment.