PresetInfo
PresetInfo:GetSelectedPreset()
Returns an PresetInfo class/structure.
.
This function will return a PresetInfo class/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 there is an error. It is worth checking for this situation.
Example.
preset = PresetInfo:GetSelectedPreset()
if preset ~= nil then
presetName = preset.PresetName
end