(LUA) Look Effect Assistant

Open Source software contributions and discussions that supplement or extend the Palette / Light Palette software
Post Reply
User avatar
MickCrozier
Posts: 288
Joined: Tue Mar 31, 2009 3:10 am
Primary Venue / Use: Professional Theatre
Where I Am: Melbourne, Australia
Location: Melbourne, Australia

(LUA) Look Effect Assistant

Post by MickCrozier » Mon Nov 01, 2010 10:04 pm

We use these scripts to make utilising pre made effects stored on looks a bit easier and quicker to handle. Great for our end of year dance season!
the concept is to use macros to turn on and off the effect - sort of 300/500 style

Drop the file into your shows folder.
You need to define the default effect lookpage - open the file, it's near the top

Add the macros where needed


LookToggle([fadetime[,downtime]]) - Attach to the look bump buttons ('Button Down' action) that contains an effect (Set Bump mode to 'Action momentary'). Basically it pushes the virtual fader to 100% instead of 'bumping' - This is crucial for the KillSubs function (PANIC Button).
Parameters:
fadetime (optional) number - number of seconds to fade over (default is 0)
downtime (optional) - number of seconds to fade down over (default is fadetime)
Examples:
LookToggle() - snap on/off
LookToggle(5, 10) - fade up over 5 seconds and down over 10

LooksOn(fadetime[, 'lookpage'], looknum[, looknum[,...]]) - Attach to a cue to turn on a series of looks that contain effects.
Parameters:
fadetime Number - number of seconds to fade up
lookpage (optional) String - if not specified it will use default_effect_lookpage
looknum Number - the number of each look to be activated (as many as required)
Examples:
LooksOn(3, 'effects2', 6, 8, 15, 21) - ramps up looks 6 8 15 and 21 on the lookpage called effects2 over 3 seconds

LooksOff(fadetime[, 'lookpage'], looknum[, looknum[,...]]) - Attach to a cue to turn off a series of looks that contain effects
Parameters:
fadetime Number - number of seconds to fade up
lookpage (optional) String - if not specified it will use default_effect_lookpage
looknum Number - the number of each look to be activated (as many as required)
Examples:
LooksOff(3, 21, 5) - fades looks 21 and 5 on the defined default effect lookpage over 3 seconds


KillSubs([downtime][,'lookpage'][,reset_inhbit_to_full true | false]) - Fades all the looks on the chosen look page (does not affect Exclusive Subs) - Attach to a bump button or variable as a PANIC button
Parameters:
downtime (optional) Number - Time to fade down in seconds (default is 1)
lookpage (optional) String - Name of the lookpage you want to kill (default is default_effect_lookpage)
reset_inhbit_to_full (optional) Boolean - if true will send inhibit subs to full
Examples:
KillSubs() - fades all looks on the default effect lookpage over 1 second
KillSubs(3, 'effects2', true) - fades looks and puts inhibit subs to full on the lookpage called effect2 over 3 seconds

KillAllSubs([downtime]) - Fades all looks across all lookpages (does not affect Exclusive or Inhibit Subs) - Attach to a bump button or variable
Parameters:
downtime (optional) number of seconds to fade down over (default is 1)
Examples:
KillAllSubs(7) - fades every look on the console over 7 seconds


Updated Lua file in next post
Last edited by MickCrozier on Thu Nov 04, 2010 3:55 am, edited 5 times in total.
Formerly Durisian (who died peacefully of digital old age)

User avatar
MickCrozier
Posts: 288
Joined: Tue Mar 31, 2009 3:10 am
Primary Venue / Use: Professional Theatre
Where I Am: Melbourne, Australia
Location: Melbourne, Australia

Re: (LUA) Look Effect Assistant v1.1

Post by MickCrozier » Thu Nov 04, 2010 2:26 am

A quick update -

New Function:
GroupSub(looknum[,...]) - Looks listed will have their level matched to the look containing the script - Attach to 'Value Change' action of a look
This allows a single sub to control many. We have set it up to do common Mega chases requested by our clients. Rather than typing LooksOn(3,3,6,8,13.16,21) everytime they want everything on stage flashing, we have a sub setup with this script and those numbers - So the same thing can now be achieved with LooksOn(3, 51)
Parameters:
looknum - The looks to be controled by the look containing the script (as many as required)
Examples:
GroupSub(1,4,7,8,23) - looks 1, 4, 7, 8 and 23 (in the same lookpage) will match the level of the look containing the script whenever it is changed


I've whipped up a quick demo file so you can see how to use the functions
It also has the effects lookpage setup on the group 5x5 array on the 2nd page - providing quick access to start/stop - EDIT: Doesn\t get saved with show file

Requires at least PaletteOS version 10.8.1

nb: The default_effect_lookpage is now 'Effects'
Attachments
Look Effect Assistant Demo.spf
(38.08 KiB) Downloaded 125 times
Look_Effect_Assistant.lua
(7.09 KiB) Downloaded 163 times
Formerly Durisian (who died peacefully of digital old age)

User avatar
RobertBell
Posts: 2421
Joined: Fri Oct 12, 2007 1:11 pm
Primary Venue / Use: Other
Where I Am: Horizon Control Inc
Location: On the dark side just north of Toronto
Contact:

Re: (LUA) Look Effect Assistant

Post by RobertBell » Mon Nov 08, 2010 11:07 am

nice code
Robert Bell - Product Manager - Horizon Control Inc.

Post Reply