Script same random on different channels

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
Zebra
Posts: 6
Joined: Fri Mar 01, 2019 4:27 pm
Real Name:

Hello users,

i have two fixtures of same kind (Lasers). I want a script to play booth fixtures the same pattern. I wrote a code like this:
a:random(0,255)
setfixture:13 ch:1 val:a // EL-230RGB #1, Pattern
setfixture:14 ch:1 val:a // EL-230RGB #1, Pattern
a:random(0,255)
setfixture:13 ch:7 val:a // EL-230RGB #1, Color
setfixture:14 ch:7 val:a // EL-230RGB #1, Color
wait:1s

The compiler says no error in the syntax. But the script don't work. Can i declare variables this way?

Thank you in advance.

Zebra
User avatar
mcallegari
Posts: 4712
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

you can't
it's not a full language
It will be possible in QLC+ 5 though: viewtopic.php?f=17&t=12498
Post Reply