View Single Post
Old 09-15-2017, 03:36 PM   #12
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by Edgemeal View Post
I added a button to midi toolbar and set it to that script. Only problem is the button doesn't update (highlight) to tell you if its enabled or not.
That's also possible with a few additions to the script.



Code:
reaper.Main_OnCommand(40364, 0) -- Toggle metronome

toggleState = reaper.GetToggleCommandState(40364)

is_new,name,sec,cmd,rel,res,val = reaper.get_action_context()
reaper.SetToggleCommandState(sec, cmd, toggleState)

Last edited by nofish; 09-15-2017 at 04:43 PM.
nofish is offline   Reply With Quote