Reply To: Appending Number to Modulator Name

Home Forums General Programming Appending Number to Modulator Name Reply To: Appending Number to Modulator Name

#118691
human fly
Participant
  • Topics: 124
  • Replies: 1070
  • Total: 1194
  • ★★★★

(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 7 months, 2 weeks ago by human fly.
Do NOT follow this link or you will be banned from the site!