PDA

View Full Version : Simple scripted sequence help



crazybob
11-06-2007, 10:18 PM
Sorry for the newbie question... I have some sequences made, and would like to run a background sequence inbetween the others. Thee background sequence I just need channels 9 - 17 on full power. That's it. but I've looked around as much as I can and cannot figure out how to do this in a scripted sequence. I googled C# scripting, but do not understand how to do it. Could someone show me how to do this simple background sequence?

Timsk
11-15-2007, 10:18 AM
For information on C# go to msdn.microsoft.com. You can even download the Visual C# 2008 Express Edition Beta which will allow you to debug. If you poke around you can find tutorials on C# programming on the MSDN site.

I think the Vixen Programmers guide has info on the classes, methods and functions used. I'm not sure since I have not tried writing scripts for Vixen.

I have not been able to find any sample vixen scripts posted. If anyone has something, please post as I would at least like a starting point to look at.

kiwichristmas
11-15-2007, 05:02 PM
heres a script that will turn off all channels

void Start() {
Off(All, Every(30).Seconds);
}

KC posted some more information here http://www.christmasinshirley.com/forum/viewtopic.php?t=729

you will want the standard.txt file

xmus
11-22-2007, 12:13 AM
So I've been hacking at this for 30 minutes, and i'm not getting it.

On(All, Every(60).Seconds);

doesn't work, I get "There is at least one plugin that has a channel range that exceeds the number of channels in the sequence.
when i click on the "Channels" tab, it is empty, but I can't see how to populate channel names.

I've tried:
On(1, Every(60).Seconds);
On(Channel1, Every(60).Seconds);
On(Channel_1, Every(60).Seconds);
On(MiniTree1, Every(60).Seconds);


Help! All I want to do is turn on about 7 channels all night, rather than having porch lights on.

Dan Ross
11-22-2007, 10:34 AM
In the tool bar there is a scrit menu, under that menu is the import channels option.

xmus
11-22-2007, 05:28 PM
In the tool bar there is a scrit menu, under that menu is the import channels option.

Thanks, that fixed that problem, now how do i specify one single channel to turn on? The list i provided above still doesn't work (All works, but I don't want All)

I'm trying:

On(Candle1, Every(60).Seconds);
On(1, Every(60).Seconds);
On(Channel1, Every(60).Seconds);
On(Channel.1, Every(60).Seconds);
On(Channel.Candel1, Every(60).Seconds);

etc...

Wayne J
11-22-2007, 05:44 PM
Just guessing, I'm still trying to figure it out also, try this...

On(Channel_1);

xmus
11-22-2007, 11:35 PM
Just guessing, I'm still trying to figure it out also, try this...

On(Channel_1);

I tried that early on, didn't work, but I tried:
On(Channel_1, Every(60).Seconds);

Trying your suggestion I get "The name 'Channel_1' does not exist in the current context"

When i do:
On(All);
I get:
"There is at least one plugin that has a channel ranged that exceeds the number of channels in the sequence"

Wayne J
11-23-2007, 12:15 AM
Just guessing, I'm still trying to figure it out also, try this...

On(Channel_1);

I tried that early on, didn't work, but I tried:
On(Channel_1, Every(60).Seconds);

Trying your suggestion I get "The name 'Channel_1' does not exist in the current context"

When i do:
On(All);
I get:
"There is at least one plugin that has a channel ranged that exceeds the number of channels in the sequence"

OK, so click on the channels tab, then replace "channel_1" with what is exactly in the channels list. Give it a go anyways.
I'm gonna give it a shot also.

Wayne J
11-23-2007, 12:22 AM
I just done
On(Channel_1);

and it worked. but that is how it listed in my channel list, that is the key.

xmus
11-23-2007, 11:17 AM
My Channels are populated automatically when I do:
Sequence->new->script project....

and the channels contain what I use in my profile manager profiles
Candle1
Candle2
Candle3
etc etc

teberle
11-23-2007, 06:07 PM
I get unterminted statement in Start().

Any suggestions? It is a simple script.

void Start()
{
On(Main_Candy_Cane);
On(Holiday_Sign);
}

xmus
11-23-2007, 08:38 PM
Wish I knew... I've abandoned scripting, and an using the scheduler to run a standard background sequence I've created. I went live 8 minutes ago, ran out of time to solve this particular issue.