From 03c262234ffd86f427ef508323558c975175db4d Mon Sep 17 00:00:00 2001 From: amagalma Date: Fri, 25 Oct 2024 10:44:38 +0300 Subject: [PATCH] Release Set project length limit to edit cursor position v1.01 (#1449) - enable project limit, if not already enabled --- ...a_Set project length limit to edit cursor position.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Project Properties/amagalma_Set project length limit to edit cursor position.lua b/Project Properties/amagalma_Set project length limit to edit cursor position.lua index 94d245493..b7613f751 100644 --- a/Project Properties/amagalma_Set project length limit to edit cursor position.lua +++ b/Project Properties/amagalma_Set project length limit to edit cursor position.lua @@ -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)