Home › Forums › General › Programming › Appending Number to Modulator Name › Reply To: Appending Number to Modulator Name
June 7, 2020 at 6:26 pm
#118691
(oh dear i’m very rusty, need to get back into it) this was to collect button states into a table (used for other stuff afterwards). initialise a table first (here it’s local/temporary). here i was collecting a component property, but it’s the same thing with a modulator value. and then use table.insert. then you can make a string from your table.
function kgetcolour()
local tbl_kitcolour={}
for i=1,5 do
local kitcolour=panel:getComponent("keydata"..i-):getProperty("uiButtonTextColourOff")
table.insert(tbl_kitcolour,kitcolour)
end
edit: ah couldn’t seen the parentheses in your post!
- This reply was modified 3 years, 9 months ago by human fly.