View Single Post
Old 09-07-2018, 11:41 AM   #3
enroe
Human being with feelings
 
Join Date: Nov 2017
Posts: 589
Default

Quote:
Originally Posted by spk77 View Post
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)
Wooah, thank you - I will check your script!
__________________
free mp3s + info: andy-enroe.de songs and weird stuff: enroe.de
enroe is offline   Reply With Quote