View Single Post
Old 10-08-2019, 02:57 PM   #2
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,641
Default

Would this (Lua script) work for you?
Code:
-- move time selection to cursor
function Main()
  local start_time, end_time = reaper.GetSet_LoopTimeRange(false, false, 0, 0, false)
  if start_time == end_time then return end
  local length = end_time-start_time
  local cursor = reaper.GetCursorPosition()
  reaper.GetSet_LoopTimeRange(true, false, cursor, cursor+length, false)
end

Main()
reaper.defer(function () end)
Edgemeal is offline   Reply With Quote