random cue stack

Write here what nice effects or shows you have done with MADRIX or ask other users.

Moderator: MADRIX Team

Locked
mstrkrft69
Posts: 8
Joined: Sun Feb 22, 2015 7:10 pm

random cue stack

Post by mstrkrft69 »

how dp i make a random cue stack. say i have 100 cues and i want to load them into the stack in a random order. is there a way to do this automatically?

thx
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: random cue stack

Post by Wissmann »

Yes, use the main out macro for this.
The Following code will set your cue each 10 seconds (if your main mixer runs on 50 Frames per second) between cue 1 and cue 100.

Code: Select all

int f;

void InitEffect()
{

}

void PreRenderEffect()
{
	f = (f+1)%500;
	if(f == 0)
		CuelistGoto(random(0,99));
}
LEDs are nothing without control ;-)
Locked