Quote:
Originally Posted by babag
i also have some buttons set to reaper native actions and they do not crash the script when clicked. any thoughts on this? does this not work with custom actions?
here's an offending custom action as listed in the script:
Code:
{ label = "REPLACE\nw1000ms", command = _fad0ff7281777ae665363b96d96f1651 },
and here's one that works:
Code:
{ label = "XFADE\nTOGGLE", command = 40912 },
|
Hi babag,
For custom action command id strings, use
Quote:
reaper.Main_OnCommand(reaper.NamedCommandLookup("_fad0ff7281777ae665363b 96d96f1651"), 0)
|
instead of
Quote:
reaper.Main_OnCommand(40912 , 0)
|
for native action IDs.