*ANY* component in Ctrlr has an alpha setting, that property is only for people who don’t use Lua to control their components it’s a “handy” way of taking something off the screen, but these properties have their own lifetime and you need to respect that lifetime when you use Lua.
BUT, you can always do (a panel two sliders modulator-1 and modualator-2, this method linked to modulator-2):
--
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
myMethod = function(mod, value)
panel:getComponent("modulator-1"):setAlpha(value/127)
end
I call the UI parts components cause they are exactly that, have a look at the JUCE docs: http://www.rawmaterialsoftware.com/juce/api/classComponent.html and you can look at what Ctrlr has from that implementation by reading the source file for that class in Ctrlr, in this case: http://sourceforge.net/p/ctrlrv4/code/1325/tree/nightly/Source/Lua/JuceClasses/ the file is LComponent.cpp
So you can do setVisible, toFront, toBack, setBounds, setEnabled etc.