User Manual

Table Of Contents
MIDI Modules Reference
Lua Script
533
Lua Script
The Lua Script module allows you to create and manage your own scripts.
In the following sections, the basic concepts and procedures are described. For more
detailed information on all parameters, editing possibilities, advanced features, etc., refer to
the online documentation that can be found under http://developer.steinberg.help.
Internal Editor vs. External Editor
The Lua Script MIDI module comes with an internal, plain text editor. This editor can be
used to write, load, and edit scripts. However, it does not offer code highlighting or advanced
editing features.
If you want to write complex scripts, it is recommended to use an external editor.
However, scripts that are written in an external editor are not part of the script module. Only
the file path for the script is saved in the VST Preset.
Scripts that are written in the internal editor have the following advantages and
disadvantages:
You can easily use them on another computer, because they are part of the Lua Script
module.
If an internal script is modified, this modification is not automatically applied to all
presets in which the script is used. It has to be added manually to each preset.
Scripts that are written in an external editor have the following advantages and
disadvantages:
They can be easily modified throughout all presets that use them.
If you want to use them on another computer, you must either make sure that the
corresponding script file is available on this computer, together with the script module,
or you have to manually copy the source code into the internal script editor.
Toolbar
Load Script
Allows you to load a script from disk.
The loaded file is referenced by the script module.