Difference between revisions of "PresetInfo:GetSelectedChannel"

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

Latest revision as of 04:10, 7 December 2016

GetSelectedChannel()

Returns an PresetInfo structure.

This function will return a PresetInfo structure for the currently selected channel in the channel list on the right in the main Preset Documentation view. It will return nil if no channel is selected. It is worth adding checking for this situation.

Example.

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