PresetInfo:GetSelectedChannel

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