Skip to content

SelectionCount()

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

This function does not accept any arguments.

  • 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.

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