Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Link time selection or loop points to arrange view v1.2 #1343

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- @description Link time selection or loop points to arrange view
-- @author AZ
-- @version 1.1
-- @changelog - Fixed dependency on option "Loop points linked to time selection"
-- @version 1.2
-- @changelog - Fixed edit cursor lost outside of time selection on scrolling
-- @link Forum thread https://forum.cockos.com/showthread.php?t=288069
-- @donation Donate via PayPal https://www.paypal.me/AZsound
-- @about
Expand Down Expand Up @@ -59,15 +59,9 @@ function main()
local _, _ = reaper.GetSet_LoopTimeRange2( 0, true, true, startTSgrid, endTSgrid, false )

local playState = reaper.GetPlayStateEx(0)
local curPos
local curPos = reaper.GetCursorPosition()

if oldTSstart ~= startTSgrid then

if playState == 1 or playState == 5 then
curPos = reaper.GetPlayPositionEx(0)
else
curPos = reaper.GetCursorPosition()
end

if curPos < startTSgrid or curPos > endTSgrid then
local contScroll = reaper.GetToggleCommandState(41817)* -1 +1
Expand Down Expand Up @@ -111,4 +105,3 @@ else
reaper.defer(function()end)
end


Loading