PresetInfo:GetSelectedPreset
From Moving Light Assistant
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