PresetInfo:GetSelectedPreset

From Moving Light Assistant
Revision as of 03:07, 7 December 2016 by Andyv wiki admin (Talk | contribs) (Added Page - In Progress.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GetSelectedPreset()

Returns an PresetInfo structure.

This function will return a PresetInfo structure for the currently selected preset in the preset list on the left in the main Preset Documentation view. If you want to access the channels in a preset, you should use PresetInfo:GetSelectedChannel(). It will return nil if no preset is selected. It is worth adding checking for this situation.

Example.

preset = PresetInfo:GetSelectedPreset()
if preset ~= nil then
presetName = preset.PresetName
end