grandMA3 User Manual Publication
SelectionNext()
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » SelectionNext()
|
Version 2.1
|
Description
The SelectionNext function returns a set of integers for the next fixture in a selection based on the index number input as an argument. It is the index number in the patch and the XYZ grid values in the selection grid.
It is not required to use all four returned integers, but they are returned in order.
Arguments
- Integer:
The index number is used to find the next fixture. The index number needs to be part of the current selection.
Return
- Integer:
The returned number is the patch index of the first fixture in the current selection. It is not the FID or CID. The index is 0-based. - Integer:
The returned number is the current position on the X-axis in the selection grid. The selection grid is 0-based. - Integer:
The returned number is the current position on the Y-axis in the selection grid. The selection grid is 0-based. - Integer:
The returned number is the current position on the Z-axis in the selection grid. The selection grid is 0-based
Example
This example prints the patch index number and grid positions of all the fixtures in the current selection:
Lua |
return function() |