Page 1 of 1

Accessing RGBA colours

Posted: Tue Nov 23, 2021 2:45 am
by jsmits
Hi, I'm trying to build some effects macros so I can create chases/fans for my RGBA fixtures, but I can't figure out how to access the Amber channel through python. The fixtures are defined with 4 channels (Red, Green, Blue, Amber) and the fixture attributes show an RGBA picker as expected. However GetAttributeVal and SetAttributeVal seem to work only for the first three attributes, not the fourth one.

As an example, something like the following will return 0.5 if the value of att is set to 0, 1 or 2, but 0.0 if it is set to 3:
SetAttributeVal(idx,att,0.5)
val = GetAttributeVal(idx, att)
print val

Any idea what I might be doing wrong?

Thanks,
Jan