Tracking as I need assistance with this as well, would like to tackle tonight/tomorrow.
Give me an general idea what you are looking for, and I can code some quick examples for you you to test...
...Just on and off - no fades?
Ok, I know how to create the groups of channels now, so lets assume i have a group named "one" and another named "two", and that I want group one to come on for 10 seconds, then 5 seconds after group one comes on group 2 does the same... therefore group two ending 5 seconds after group one.
Then to add to the mix (and my understanding of the coding too of course) I want group three to come on along with group one for 15 seconds so that it goes off with group two. Finally, chuck in a 5 second pause with just my original permanently "on" channel we discussed earlier before channels 2, 3 and 4 start the cycle again, and again, and again?
I don't want much do I?!?! You're a star for helping me with this, and with the above knowledge that should give me all the info I need to make anything I want happen in a scripted sequence 😉
All just on & offs. Thanks again!!! 🙂
void Start() {
ChannelCollection Group_One;
ChannelCollection Group_Two;
ChannelCollection Group_Three;
ChannelCollection Group_AlwaysOn;
Group_One = Channels(Channel_1,Channel_2);
Group_Two = Channels(Channel_3,Channel_4);
Group_Three = Channels(Channel_5);
Group_AlwaysOn = Channels(Channel_6);
while(true) {
On(Group_AlwaysOn);
On(Group_Three);
On(Group_One, For(5).Seconds,Wait);
On(Group_Two, For(5).Seconds,Wait);
Off(Group_One, For(5).Seconds,Wait);
Off(Group_Two);
Off(Group_Three, For(5).Seconds,Wait);
}
}
So Group_AlwaysOn, Group_Three and Group_One all come on at the same time. Group_Two comes on five seconds later because of the Wait on the previous command. The previous On() waits for five seconds before proceeding to the Group_One Off() . Group_Two and Group_Three turn Off() 5 seconds later, again because of the Wait on the turning Off() of Group_One.
The bottom of the while loops pauses for 5 seconds because of the Wait on the Group_Three Off().
The while loop again executes. We could move the On(Group_AlwaysOn) before the while loop. Inside the loop, it just keeps turning it on, which doesn't hurt if it is already on.
A FANASTIC TUTORIAL IN SCRIPTING BASICS!
You managed to put that into really easy to understand English for me and I'm sure this thread will be seen by many in the future and be of help to them too.
Although there are deeper scripting lessons on here, they also assume you can read most of the script and understand what makes what happen. I thought that I was going to have to scrap the thought of ever using background scripts until now.
MASSIVE thanks!!!! 😀
