View Single Post
Old 10-21-2019, 08:01 PM   #535
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by babag View Post
started playing a little with the suggested code and have gotten my first error:

i decided to try making two buttons, one to enable, the other to disable 'crossfade on split.' started by taking a test script generated by the gui builder and editing the code into it. here's what threw the error:
Code:
local toolbar_buttons = {
  { label: "XF ON", command: 40927 },
  { label: "XF OFF", command: 40928 },
}
Oops, my bad - my brain was in Javascript mode. Those :s should be =s:
Code:
local toolbar_buttons = {
  { label = "XF ON", command = 40927 },
  { label = "XF OFF", command = 40928 },
}
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote