This macro script should be run after you've selected a range of fixtures. It will round the intensities up or down such that each level ends in a zero digit.
Code: Select all
s = HC.GetCurrentSelectionSet(',')
for fixture in string.gmatch(s,"%d+") do
x = HC.AttributeGetValue(fixture)
if math.fmod(x,10) >= 5 then
HC.SetLevel(fixture, math.floor(25.5*math.ceil(x/10)))
else
HC.SetLevel(fixture, math.floor(25.5*math.floor(x/10)))
end
end