Difference between revisions of "PresetDocFixtureView:IsLastPresetRowSelected"

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

Latest revision as of 09:58, 29 September 2016

IsLastPresetRowSelected()

Returns a boolean.

Available in MLA v1.3 onwards.

This function will return true if the last preset is selected in the fixture preset list, otherwise will return false. Useful when iterating through the preset list.

Example.

PresetDocFixtureView:DispatchAction("Select First Preset")
presetListFinished = false
while presetListFinished == false do
-- Insert code here to do what you want with the preset.
-- Continue to next preset, or are we done.
if PresetDocFixtureView:IsLastPresetRowSelected() == true then
presetListFinished = true
else
PresetDocFixtureView:DispatchAction("Select Next Preset")
end
end

This will select the first preset in the preset list and step through all the displayed presets.