Quote:
Originally Posted by spk77
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