RGB Panel and Scripting Language
Posted: Fri Jul 14, 2017 9:06 pm
At work I'm using QLC+ on a Windows Surface Pro to control an RGB panel with 8 high-power lasers. My goal is to create a series of flashy demos for customers to show off some light fiber product we have.
Since the demos I'm going to make will be fairly complicated, rather than use the slow point and click interface of the GUI I want to use the script editor to generate the desired lighting patterns in a timely and efficient manner. At the heart of these demos will be fading the RGB lasers in and out to provide a better viewing experience for the customers being shown the demos.
The structure for the code that I've come up with to fade the lasers in looks something like this:
setfixture val:startVal
wait:deltaT
setfixture val:startVal+incVal
wait:deltaT
setfixture val:startVal+2*incVal
wait:deltaT
.
.
.
and so on and so forth so that whoever is watching gets the effect of the laser gradually lighting up for a period of time that would be tunable in the script through changing the value of deltaT and over a range of brightnesses that would be tunable through changing the values of startVal and incVal.
How do I iterate this in the Script Editor so that I don't have to hard-code the entire thing and then go back and change the value of every single instance of "wait:value" and "setfixture:value" if I get them wrong initially or they need to be tuned at a later point? I've tried writing a for-loop and found the editor does not recognize it. I can't find any information on the way the script editor works besides the aforementioned "keyword:value" syntax so I'm hoping someone here can point me in the right direction.
Since the demos I'm going to make will be fairly complicated, rather than use the slow point and click interface of the GUI I want to use the script editor to generate the desired lighting patterns in a timely and efficient manner. At the heart of these demos will be fading the RGB lasers in and out to provide a better viewing experience for the customers being shown the demos.
The structure for the code that I've come up with to fade the lasers in looks something like this:
setfixture val:startVal
wait:deltaT
setfixture val:startVal+incVal
wait:deltaT
setfixture val:startVal+2*incVal
wait:deltaT
.
.
.
and so on and so forth so that whoever is watching gets the effect of the laser gradually lighting up for a period of time that would be tunable in the script through changing the value of deltaT and over a range of brightnesses that would be tunable through changing the values of startVal and incVal.
How do I iterate this in the Script Editor so that I don't have to hard-code the entire thing and then go back and change the value of every single instance of "wait:value" and "setfixture:value" if I get them wrong initially or they need to be tuned at a later point? I've tried writing a for-loop and found the editor does not recognize it. I can't find any information on the way the script editor works besides the aforementioned "keyword:value" syntax so I'm hoping someone here can point me in the right direction.