Page 1 of 1

help - HC.SetLevel 10.6.2

Posted: Wed Jun 24, 2009 2:00 am
by MickCrozier
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?

Re: help - HC.SetLevel 10.6.2

Posted: Wed Jun 24, 2009 1:58 pm
by RobertBell
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.

Re: help - HC.SetLevel 10.6.2

Posted: Wed Jun 24, 2009 8:38 pm
by MickCrozier
Cheers Robert... pretty much what I had in mind as a solution - but with way fewer lines of code! :D

Re: help - HC.SetLevel 10.6.2

Posted: Tue Jul 21, 2009 6:14 pm
by tom
What knid of customisation have you done? I'd be curious to see.