View Full Version : Scripting Sequences assistance
Mudsculpter
12-04-2007, 03:59 PM
I have this sequence here that I can get compiled and running but it ends. I want this to be able to repeat. What am I doing wrong. Thanks for any help.
Dark Red = suggestions to code that did not give desired result.
Green = Oh Yeah baby,.....Yeah,.....
void Start () {
On (Channels(Candy_Canes_right_96, Candy_Canes_mid_110, Candy_Canes_left_115), At(100);
On (Channels(Snowmen_right_99, Snowmen_left_114), At(100);
On (Channels(Eave_Icicles_104, Big_Wreath_92, Entry_Garland_103), At(100);
On (Channels(Big_Bulbs_entry_right_97, Big_Bulbs_entry_left_116), At(100);
On (Channels(Wreath_CT_98, Wreath_CT_101), At(100);
On (Channels(Megatree_Star_29), At(100);
Ramp (ChannelRange (1,16), 0, 100, For(7000).Milliseconds, Wait);
Ramp (ChannelRange (1,16), 100, 0, For(7000).Milliseconds, Wait);
Ramp (ChannelRange (17,32), 100, 0, For(7000).Milliseconds, Wait);
Ramp (ChannelRange (17,32), 0, 100, For(7000).Milliseconds, Wait);
Ramp (ChannelRange (33,48), 0, 100, For(7000).Milliseconds, Wait);
Ramp (ChannelRange (33,48), 100, 0, For(7000).Milliseconds, Wait);
WaitOnTimers();
}
Wayne J
12-04-2007, 07:59 PM
Add this as the last line....
WaitOnTimers();
Mudsculpter
12-04-2007, 10:03 PM
Still no joy,.. Sequence shuts down after the final ramp
kiwichristmas
12-06-2007, 05:01 AM
you could simply add a for loop,
ie
void Start () {
for(int i = 1;i<=10;i++){
On (Channels(Candy_Canes_right_96
"""
"""
Ramp (ChannelRange (33,48), 100, 0, For(7000).Milliseconds, Wait);
WaitOnTimers();
}
}
and change i<=10 to a value that will keep the script running as long as you need, note this is a quick and dirty way to achive the end result, there are better ways, but I'm not sure what they are :)
Mudsculpter
12-06-2007, 08:20 AM
Thanks for that,.. I have been doing some studying and have come up with an alternate script. It locks up vixen during initial playback though. Maybe some more eyes on it
void Start() {
Off (All);
while (true) {
int A = 1;
int B = 17;
int C = 33;
int Z = 0;
On (Channels(Candy_Canes_right_96, Candy_Canes_mid_110, Candy_Canes_left_115), At(100));
On (Channels(Snowmen_right_99, Snowmen_left_114), At(100));
On (Channels(Eave_Icicles_104, Big_Wreath_92, Entry_Garland_103), At(100));
On (Channels(Big_Bulbs_entry_right_97, Big_Bulbs_entry_left_116), At(100));
On (Channels(Wreath_CT_98, Wreath_CT_101), At(100));
int V = 100;
while (Z<6> 16)
On (ChannelRange(A,A + 1), At(V), For(25).Milliseconds);
Z = Z + 1;
A = A + 1;
if (A > 16)
continue;
A = 1;
B = B + 1;
C = C + 1;
V = V - 20;
if (V < 0)
continue;
Off (ChannelRange(A,A + 1));
}
}
}
forgive the lack of [tabs] but cut/paste does not preserve them.
Mudsculpter
12-06-2007, 09:49 AM
So the expression
i++
is the same as
i = i + 1?
tfmacz
12-06-2007, 01:07 PM
Is there somewhere a procedure or how-to re:scripting?
I see above references to compiling???
Do you write the script and then compile it? How?
Is there a list of commands somewhere? (On, Off, Ramp, ????)
Using the Vixen Script Editor How do I populate the channel list from the current profile?
How do I save the script?
Probably need to get together with someone on the chat???
tfmacz
12-06-2007, 02:36 PM
Thanks...
kiwichristmas
12-06-2007, 02:39 PM
there are a couple of places for info on scripting, Slush has written a post on the steps http://www.christmasinshirley.com/forum/viewtopic.php?t=1383&highlight=background+script, and KC has posted the commands here http://www.christmasinshirley.com/forum/viewtopic.php?t=729
kiwichristmas
12-06-2007, 02:46 PM
Mudsculpter, yes i++ is the same as i = i +1
the script is writte in C#
dyimike
09-20-2011, 11:20 AM
Looking for any info on scripting. There are a couple of links in this thread that are now dead. A list of commands would be a great start.
Thanks
djulien
09-20-2011, 09:30 PM
Looking for any info on scripting. There are a couple of links in this thread that are now dead. A list of commands would be a great start.
Thanks
By "commands" do you mean the list of functions that are provided by Vixen specifically for turning channels on and off during scripting, or do you also mean the more generic "built-in" commands? Sorry if this sounds like a dumb question. I'm asking because I think you can actually call any core .NET functions directly, or any function in an external assembly if you configure it, in addition to the functions that Vixen provides for "scripting".
don
macebobo
09-21-2011, 02:10 AM
there are a couple of places for info on scripting, Slush has written a post on the steps http://www.christmasinshirley.com/forum/viewtopic.php?t=1383&highlight=background+script, and KC has posted the commands here http://www.christmasinshirley.com/forum/viewtopic.php?t=729
Does anybody know what the updated URLs are? Thanks. -- John
dyimike
09-21-2011, 05:54 PM
By "commands" do you mean the list of functions that are provided by Vixen specifically for turning channels on and off during scripting
Yes, a list of functions that are provided by Vixen would be a good start. Updates to the URLs listed below might be better.
Thanks
dpitts
09-21-2011, 11:16 PM
This page has some info on scripting. http://www.doityourselfchristmas.com/wiki/index.php?title=Vixen_Script_Projects#Vixen_Standa rd_Scripts
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.