View Single Post
Old 04-18-2019, 12:44 AM   #1835
Mottemania
Human being with feelings
 
Join Date: Apr 2016
Posts: 103
Default

Could anybody create a script for changing the peak view with my mousewheel? I know its a bit PT-ish but I like it

Nevermind, got it:

Code:
function Msg(param)
  reaper.ShowConsoleMsg(tostring(param)..  "\n")
end
  
  function main()
    local is_new_value,filename,sectionID,cmdID,mode,resolution,val = reaper.get_action_context()
 	--Msg(val)
   if val == 0 or not is_new_value then 
	else
			if val > 0 then reaper.Main_OnCommand(40155, 0)
	 		else reaper.Main_OnCommand(40156, 0)
	 		end
		
	end
    
	 
	 
    
  end

reaper.ShowConsoleMsg("")
main()
reaper.UpdateArrange()

Last edited by Mottemania; 04-18-2019 at 07:07 AM.
Mottemania is offline   Reply With Quote