Difference between revisions of "PresetInfo:GetSelectedPreset"

From Moving Light Assistant
Jump to: navigation, search
(Added Page - In Progress.)
 
(No difference)

Latest revision as of 03:07, 7 December 2016

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