How do I loop a script?

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
Bulgus
Posts: 1
Joined: Wed Aug 21, 2024 12:16 pm
Real Name:

Hello,
I'm just learning to use QLC+ and it's great software. But I have a problem:
In order to create random rotational movements of the heads of a scan I have created a very simple script (See below).

Code: Select all

setfixture:2 ch:0 val:random(0,255) // Dual Pat, Pan 1
setfixture:2 ch:1 val:random(0,255) // Dual Pat, Tilt 1
wait:random(100,2000)
Only I can't get it to play in a loop. I couldn't find a loop instruction in the script language on the docs, so I thought I'd put it in a chaser. In this one I only have my script, and my chaser is in loop mode.
But the chaser doesn't wait for my script to finish before restarting the step corresponding to the script, so my head moves but never stops...
I think I've understood that the problem is with the step time. But I haven't found an option to say ‘Time required to execute the script’. And if I set a value of 10s for example, there's no longer any randomness in the time between each movement....

I'm probably doing it wrong, any help would be great :)

Thanks for reading and have a nice day,
Aimé
User avatar
GGGss
Posts: 3052
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

If you seek a 'random' solution, the only thing I can suggest is creating a chaser with many steps and a playful setting of the step timings. Have the chaser perform the random steps in its settings. No one but you will notice this behaviour.
All electric machines work on smoke... when the smoke escapes... they don't work anymore
Post Reply