(LUA) Release all cuelists except Main Cue List

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) Release all cuelists except Main Cue List

Post by MickCrozier » Mon Nov 09, 2009 7:42 pm

Useful for VL operators who use the physical M-Keys to trigger cue list chases.
I attached it to a bump button...

Code: Select all

for i = 1,50 do	
  name = HC.GetProperty('cuelist',i,'name')
  if name == "Main Cue List" or name == "" then
  else
    HC.CueListRelease(name, 1)
  end
  HC.VariableSet('Variables','Variable ' .. i, 0)
end
Notes:

The default variables page is attached to the Mkeys.
Variables 1-12 can be setup with 2 actions to give you quick chase access:
OnValue = 0, CueListRelease("Cuelist name")
OnValue = 1, CueListGo("Cuelist name")

By setting the variables back to 0 in the above code, you know that that next hit of the mkey will be sure to start the chase again

You may need to increase the number of loops if you use lots and lots of cue lists (for i = 1, ##)

You can set the name of your main cuelist here - if name == "Name of main cuelist"

edit: modified code with a line that I removed because I forgot why I put it there.... now I remember! :mrgreen:
Last edited by MickCrozier on Wed Nov 11, 2009 5:52 am, edited 2 times in total.
Formerly Durisian (who died peacefully of digital old age)

User avatar
JohnGrimshaw
Posts: 1233
Joined: Tue Oct 16, 2007 12:51 pm
Primary Venue / Use: Other
Where I Am: International Man of Mystery
Location: Sydney, Australia
Contact:

Re: (LUA) Release all cuelists except Main Cue List

Post by JohnGrimshaw » Tue Nov 10, 2009 4:37 am

cool!
...and for more entertainment industry trivia and useless facts, just ask:
John Grimshaw
Managing Director
Stage Fast Pty Ltd

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) Release all cuelists except Main Cue List

Post by MickCrozier » Sat Jul 24, 2010 7:32 am

This came up in another post - thought I better update the code to with what I'm using now...

This will release all cuelists except the one you have selected AND any that you specifcally put into the code by extending the IF statement with "or cuelist == 'name of cuelist' "

Code: Select all

selected_cuelist = HC.GetProperty('system', 'currentcuelist')

for i = 0,HC.GetProperty('system', 'numcuelists') do
  cuelist = HC.GetProperty('cuelist',i,'name') 
  if cuelist == "" or cuelist == selected_cuelist or cuelist == 'Main Cue List' or cuelist == 'another cuelist I want to leave alone' then
  else
    HC.CueListRelease(cuelist, 1)
  end
end
Formerly Durisian (who died peacefully of digital old age)

jltsale
Posts: 29
Joined: Fri Apr 30, 2010 1:07 pm
Primary Venue / Use: Architectural
Where I Am: Denver, Colorado
Location: Denver, Colorado

Re: (LUA) Release all cuelists except Main Cue List

Post by jltsale » Sat Jul 24, 2010 10:49 am

Awesome, thanks

Post Reply