help - HC.SetLevel 10.6.2

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

help - HC.SetLevel 10.6.2

Post by MickCrozier » Wed Jun 24, 2009 2:00 am

I plan to use customized version of Toms 'mote' for rfu in our phones once our palette VL is installed.

To turn on/off multiple fixtures Toms code uses:

Code: Select all

HC.SetLevel(HC.GetCurrentSelectionSet('%2B'), '255' , '1500'))
(for those who don't get the beta updates - HC.SetLevel has been omitted from 10.6.2)

HC.AttributeFade seems like the alternative, however (as far I can tell) it can only handle 1 fixture at a time

So the solution seems complex in comparison -
Create an array from the string HC.GetCurrentSelection
send HC.AttributeFade as required
- it's not difficult to code in most languages, but seems a shame as it has been so easy with SetLevel

Is there still a simple method to turn set levels of multiple fixtures?
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: help - HC.SetLevel 10.6.2

Post by RobertBell » Wed Jun 24, 2009 1:58 pm

try

Code: Select all

s = HC.GetCurrentSelectionSet(',')
for fixture in string.gmatch(s,"%d+") do
  HC.AttributeFade(fixture,50)
end
fades current selection set to 50%. FYI HC.AttributeFade() says it can accept a time, but if you don't specify the attribute, by default it uses Intensity and the TIME parameter does not work.
Robert Bell - Product Manager - Horizon Control Inc.

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: help - HC.SetLevel 10.6.2

Post by MickCrozier » Wed Jun 24, 2009 8:38 pm

Cheers Robert... pretty much what I had in mind as a solution - but with way fewer lines of code! :D
Formerly Durisian (who died peacefully of digital old age)

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

Re: help - HC.SetLevel 10.6.2

Post by tom » Tue Jul 21, 2009 6:14 pm

What knid of customisation have you done? I'd be curious to see.
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