Intro into variables - Faders with time

Open Source software contributions and discussions that supplement or extend the Palette / Light Palette software
Post Reply
tom
Posts: 224
Joined: Thu Jun 26, 2008 5:30 am
Location: The Netherlands

Intro into variables - Faders with time

Post by tom » Fri Dec 12, 2008 12:49 pm

The idea of this thread is to give a brief introduction to variables for people who have never done any sort of programming and are still alittle daunted of the whole variable setup on the palette. So the whole thing will be extremly basic but hopefully it'll give you a nudge in the right direction.

Miss the old timed faders of the 500 series??? Well here is a technique that will show you how to get a relatively close effect on the new palettes. We are going to use one look fader to control another look with a time value.

Firstly:
Setup your show as you want it.
On Sub Page 1, make Look 1. Emtpy look, but it must exist.
Also on Sub Page 1, make look 2. This one with channel 1 @ 100%
We are going to use look 1 to control look 2.
Make sure "looks on playbacks" is enabled if your palette only has playback faders
Hardware setup - A/B C/D - toggle "looks on Playbacks"

Next: We're going to setup the variable page, making sure it's looking at Sub Page 1.
Go to : display - variables
1.jpg
1.jpg (14.61 KiB) Viewed 869 times
In the variables page we have to change the patch setting to make sure that it is looking at Sub Page 1.
2.jpg
2.jpg (8.57 KiB) Viewed 869 times
Pay attention to the fact that the naming order is case sensitive. It must be exactly the same as the looks page title, with capital letters, spaces and everything.

Now that we have that setup, the variables will look at Sub Page 1. The Order number of the variable coresponds to the number of the look. Order 1 / Look 1.
Now to give the macro some code.
Go to the list of variables and click on the macro area of variable 1.
3.jpg
3.jpg (9.27 KiB) Viewed 869 times
You will get a popup windw.
In this window we are going to press add(s2)
Then change the Action to "Up through" and the "Value" to 90.
-----------------------------------------------------------
I'm going to continue in the follow post due to attachment issues.
Last edited by tom on Sat Dec 13, 2008 9:30 pm, edited 6 times in total.
Light palette : classic
Nederlands Dans Theater.

"Come forth and thy shalt win eternal happiness", but he came fifth, so he won an electric toaster.

tom
Posts: 224
Joined: Thu Jun 26, 2008 5:30 am
Location: The Netherlands

Re: Intro to variables - Faders with time

Post by tom » Fri Dec 12, 2008 1:15 pm

If all has gone according to plan you should be looking at this:
4.jpg
4.jpg (14.55 KiB) Viewed 857 times
To summarize what we've done here:
We are telling the palette to look at fader 1. When fader 1 passes through 90% it's going to trigger the action. It only triggers the action when the fader passes up through 90%, so when you bring the fader down again it will not trigger the same action.

Right, on to the actual command.

Double click on the macro area of the first action. You'll get a new popup. Go to the script section (s12)
5.jpg
5.jpg (14.46 KiB) Viewed 857 times
On the left side you see the available commands as they are at the moment. On the right side you see the area where you enter the script. Enter the following script:

Code: Select all

HC.LookFade ('Sub Page 1', 2, 100, 10)
Breaking that down:
HC - I imagine that stands for Hardware Command (but i'm not completly sure)
LookFade - Tells the palette to take control of a look.
('look_page', 'look number', 'value', 'time')
In this case, Sub Page 1, Look number 2 (where we set channel 1 @ 100%), 100%(we want look 2 to fully fade in), and the time 10 seconds.

When you enter a name, eg Sub Page 1 it has to be enclosed in ' ', pure numbers dont need the quote marks.

Well thas it for the first part. It's a tiny bit of code but it can be usefull if you've got wobbly hands. Press OK and the action is set. But so far all we've done is told the look to fade in, we have to do the same process to make the look fade out.

Add a new action, make it Down through, with a value of 10. Double click the macro area, S12 for scripts section and add the code:

HC.LookFade('Sub Page 1', 2, 0, 10)

Press OK.

Now it's set to fade in and fade out. We're done, press OK once more and then go back to your live screen. It's time to test. Make sure your in Sub Page 1 and slide fader 1 open. Once it breaches 90% you should see channel 1 fading in. Then bring fader 1 back down, and once it is less than 10% you should see the channel fade away.

Your probably thinking, jesus, what a complicated way of putting a time on a fader. Well, thats true. It's not that easy if your new to this type of thing. But this only shows a tiniest amount of what is possible with the commands. It's a good place to start. Browse through the rest of the commands in the script screen and see what else you can come up with. You can now turn a fader into a multiple command launching controller.

Remember that you can trigger commands on other look pages too. So you can have 1 page for your channels and another page for actions that lauches them. And remember case sensitive, most of the time when something does'nt work, it's just because of a tiny typo somewhere. Missing a space or a capital letter.

Gluck
Light palette : classic
Nederlands Dans Theater.

"Come forth and thy shalt win eternal happiness", but he came fifth, so he won an electric toaster.

User avatar
gooze
Posts: 1760
Joined: Tue Dec 18, 2007 12:42 pm
Location: Amsterdam, The Netherlands
Contact:

Re: Intro to variables - Faders with time

Post by gooze » Fri Dec 12, 2008 2:15 pm

Excellent Tom!
Might be even better if the fading part (variables) are "hidden" in another Sub Page, so they control the same sub numbers from another page.

HC almost certainly stands for Horizon Control.

Keep up the good work! Surprise us after your Christmas Holidays!
Floriaan Ganzevoort - Lighting designer
THEATERMACHINE design. production. operations.

tom
Posts: 224
Joined: Thu Jun 26, 2008 5:30 am
Location: The Netherlands

Re: Intro to variables - Faders with time

Post by tom » Fri Dec 12, 2008 6:45 pm

Horizon control - doh!

Yup I agree, I hinted at it in the end but figured i'd keep it simple for the first attempt.
Light palette : classic
Nederlands Dans Theater.

"Come forth and thy shalt win eternal happiness", but he came fifth, so he won an electric toaster.

Post Reply