View Single Post
Old 10-21-2019, 09:00 PM   #537
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
ah. thanks. but now i'm getting:
that's this line:
Code:
  GUI.New("btn_"..k, "Button", (k - 1) * button_width, 0, button_width, 24, caption = v.label, func = function() reaper.Main_OnCommand(v.command, 0) end)
don't get that. looks right to my untrained eye.
Dammit, my mistake again. Take out "caption = " and "func = " - having the parameters named is an alternate syntax I added a while back.

Quote:
btw, this is really cool.
Thanks. I'm hoping to have the next version ready for testing in a week or two.
__________________
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