You can write a control script for the purpose of automatically accomplishing tasks or creating other control mechanisms by associating a control script with standard controls in the Schematic Elements of a Q-SYS design.
Control scripting in Q-SYS Designer uses the Lua.org programming language with extensions that allow it to control Q-SYS hardware and software.
Scripting Components allow you to write scripts to perform operations on values, positions, strings, colors and other metadata, and timing of controls in the Schematic Elements. Q-SYS Designer includes multiple scripting components, each with a different approach to authoring a script.
Timer.Start
vs Lua's math.abs
).Controls.Inputs
and Controls.Outputs
. Access to these objects is accomplished with the [] operator. For example, Controls.Inputs[1].Value
gives you access to the value of the Control assigned to input 1.
Note: Lua Arrays are 1 based.
Learn the basic Q-SYS third party control principles, including Lua scripting basics.
The Maximum Execution Error is thrown when an individual call of a Lua function exceeds the maximum allowed number of CPU cycles. Infinite loops are the most common cause of this error. "Max execution limits exceeded" is displayed in the debug log when this error occurs.
Software and Firmware | Resources | QSC Self Help Portal | Q-SYS Help Feedback
Copyright © 2019 QSC, LLC. Click here for trademark and other legal notices. |