Boolean PresetDocFixtureView:IsLastPresetRowSelected()
Returns a boolean.
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.