SelectionCount()
Description
Section titled “Description”The SelectionCount Lua function returns a number indicating the total amount of currently selected fixtures.
Arguments
Section titled “Arguments”This function does not accept any arguments.
Return
Section titled “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
Section titled “Example”This example prints the number of fixtures in the current selection to the Command Line History:
| Copy CodeLua |
| ``` |
| return function() |
Printf('Number of fixtures in the current selection: %i', SelectionCount())end