Accessing RGBA colours

Discuss D-Pro Python macro programming, and post any new macros here!
Post Reply
jsmits
Posts: 1
Joined: Tue Nov 23, 2021 2:21 am

Accessing RGBA colours

Post by jsmits » Tue Nov 23, 2021 2:45 am

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

Post Reply