On the following script are created two switches; the 2nd is assigned with the "learn MIDI CC# automation" and I wanted that when the 1st switch is active, the 2nd ignore any midi incoming and the switch doesn't change its state (from on to off or viceverse)
Code: Select all
on init
declare ui_switch $one
declare ui_switch $two
end on
on ui_control ($two)
purge_group(0,$two)
end on
on controller
if ($one = 1)
ignore_controller
end if
end on
Cheers