(LUA) Kill those pesky subs

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) Kill those pesky subs

Post by MickCrozier » Mon Nov 16, 2009 11:01 pm

This little gem kills all the subs on the current look page (except inhibitive subs). Great for busking when you hear the dreaded 'BLACKOUT!' call

Code: Select all

LPname = HC.GetProperty('system','currentlookpage','name')
n = #LPname
while n > 0 and LPname:find("^%s", n) do n = n - 1 end
LPname = LPname:sub(1, n)

for i = 0,63 do	-- (high number needs to be 'number of subs on your console' minus 1)	
  Ltype = HC.GetProperty('look', LPname, i,'type')
  Lnumber = HC.GetProperty('look', LPname, i,'number')

  if Ltype == '2' then
    --HC.LookFade(LPname,Lnumber,100,1) -- INHIBITIVE (uncomment to send to full)
  else
    HC.LookFade(LPname,Lnumber,0,1)
  end
end
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) Kill those pesky subs

Post by RobertBell » Sat Nov 21, 2009 10:29 pm

Nice one!
Robert Bell - Product Manager - Horizon Control Inc.

Post Reply