PresetInfo:GetSelectedChannel

From Moving Light Assistant
Revision as of 04:10, 7 December 2016 by Andyv wiki admin (Talk | contribs) (Added Page.)

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

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