Hello,
I am relatively new to Halion Lua scripting (but relatively old to scripting in general ;-))
I am trying to create a “Layer Alternate” MidiModule in code and then set the parameters:
- Alternation Mode: Random Exclusive
- Enable: activated
- Alternation List: A list of Layers that I already have access to programmaticaly
I tried something like:
if (grouplayer) then
local midiMod = MidiModule('Layer Alternate')
midiMod:setName("Layer Alternate")
midiMod:setParameter("Mode", "Random Exclusive")
midiMod:setParameter("Enable Key", true)
midiMod:setParameter("Alternation", {})
grouplayer:appendMidiModule(midiMod)
end
But this only works for setting the Name.
Is there any reference in the documentation where I can see the exact names and value ranges of all parameters that can be set in the midi module “Layer Alternate”?
Thanks for any help!