View Single Post
Old 09-06-2018, 12:43 PM   #2
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Voted "Yes", but this is actually very easy to script (and you can save multiple versions of it with different zoom levels):

Code:
local zoom_level = 0.25 -- (quarter of project length)

function zoom()
  local cursor_pos = reaper.GetCursorPosition()
  local arr_start, arr_end = reaper.GetSet_ArrangeView2(0, false, 0, 0)
  local new_arr_length = reaper.GetProjectLength(0) * zoom_level
  reaper.GetSet_ArrangeView2(0, true, 0, 0, cursor_pos - (0.5*new_arr_length), cursor_pos + (0.5*new_arr_length))
end

reaper.defer(zoom)
spk77 is offline   Reply With Quote