All comments in LUA start with a --
This comment option will define how the script will be triggered. For example, if you wish the script to be triggered from the ‘Scripts’ menu, then include the line below in your script.
-- TriggerType=Menu
If no trigger type is specified, the script will not be able to be triggered be default.
The trigger type can be changed in the ‘Manage Scripts…’ dialog without the need to edit a script.

TriggerType Options

None

-- TriggerType=None
With the option set to None, the script can not be triggered to be run.

Menu

-- TriggerType=Menu
With the option set to Menu, the script will appear in the ‘Scripts’ menu. Selecting the script from the menu will run the chosen script. The order of the scripts in the menu is the order they are found in the ‘Scripts’ folder.

Key

-- TriggerType=Key
With the option set to Key, the script will triggered when the user pushes a specified key on the keyboard. The key to use as the trigger is specified with the TriggerKey comment option.

MIDI_Note

-- TriggerType=MIDI_Note
With the option set to MIDI_Note, the script will triggered when the a specific MIDI note is received.
TRIGGER NOT IMPLEMENTED

EOS_Macro

-- TriggerType=EOS_Macro
With the option set to EOS_Macro, the script will triggered when it has detected that a specific macro has been run on the EOS console. The macro number is specified with the Macro comment option.

MA2_Macro

-- TriggerType=MA2_Macro
With the option set to MA2_Macro, the script will triggered when it has detected that a specific macro has been run on the grandMA 2 console. The macro number is specified with the Macro comment option.

PresetDoc_Preset_Selection

-- TriggerType=PresetDoc_Preset_Selection
With the option set to PresetDoc_Preset_Selection, the script will be triggered when the preset selection is changed in the Preset Documentation view.

PresetDoc_Channel_Selection

-- TriggerType=PresetDoc_Channel_Selection
With the option set to PresetDoc_Channel_Selection, the script will be triggered when the channel selection is changed in the Preset Documentation view.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.