Re: Lua Help

Home Forums General Programming Lua Help Re: Lua Help

#2920
atom
Keymaster
  • Topics: 159
  • Replies: 2945
  • Total: 3104
  • ★★★★★

also this code changes the position of the first slider:
[code:1f9xrow8]

— Called when a modulator value changes

randomSliderColour = function(modulator, newValue)
m = panel:getModulatorByName("modulator-1")

if m ~= nil then
c = m:getComponent()
c:setPropertyString ("componentRectangle", "128 128 64 64")
end
end
[/code:1f9xrow8]

so i guess this should work

Ctrlr