grandMA3 User Manual Publication
GetPresetData(handle[, boolean[, boolean]])
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetPresetData(handle[, boolean[, boolean]])
|
Version 2.0
|
Description
The GetPresetData Lua function returns a table with the preset data based on the preset handle.
The returned table is quite complex and has tables inside the table.
Arguments
- Handle:
The handle of the preset from which the data will be collected. - Boolean | nil (optional):
This boolean determines whether the returned table should only contain phaser data. The default value is "false". - Boolean (optional):
This boolean defines if there should be an extra object in the returned table. The default value is "true". The extra table object has the key "by_fixtures", and it contains the same table content as the returned table, but the keys are the fixture ID number instead of the UI Channel Index.
Return
- Table | nil:
The returned table contains the preset data. It has multiple levels of tables.
Example
This example prints information about the first level table in the preset data and the first level of the first fixture in the preset. It uses dimmer preset 1, which must exist.
Lua |
return function() |