grandMA3 User Manual Publication

SelectionCount()

grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » SelectionCount()
Version 2.1

Description

The SelectionCount Lua function returns a number indicating the total amount of currently selected fixtures.

Arguments

This function does not accept any arguments.

Return

  • Integer:
    The function returns an integer number depicting the total amount of fixtures in the current selection.
    If there is no selection, then it returns 0.

Example

This example prints the number of fixtures in the current selection to the Command Line History:

Lua
return function()
Printf('Number of fixtures in the current selection: %i', SelectionCount())
end