View Single Post
Old 11-10-2019, 11:19 AM   #1892
LarrySeyer
Human being with feelings
 
LarrySeyer's Avatar
 
Join Date: Sep 2006
Location: Bastrop, Tx
Posts: 169
Default

Quote:
Originally Posted by spk77 View Post
This seems to work, but you have to create a copy of this script (with different "action_id_str") for each of your buttons:

Code:
local action_id_str = "_RSbfc5312090ba047544b89a315793ce5754c95bdd" -- Copy/paste this Command ID from the action list
local sectionname = "" -- empty string for main section actions

local action = reaper.NamedCommandLookup(action_id_str)
local retval, sec = reaper.GetArmedCommand()
if retval == action and sec == sectionname then
  action = 0 -- disarm
end

reaper.ArmCommand(action, sectionname)
reaper.defer(function() end) -- no undo point
That works perfectly! Thank you!

BTW, what theme are you using? It looks awesome!

L
LarrySeyer is offline   Reply With Quote