Hello! I am wondering what the best way to create colour animations based on an expression are. For example,
if ({[.]DIVERTER_STATE/0} , 0,
if ({[.]DIVERTER_STATE/5} , 1,
if (({[.]DIVERTER_STATE/11}||{[.]DIVERTER_STATE/12}||{[.]DIVERTER_STATE/13}||{[.]DIVERTER_STATE/14}) , 2,
if ({[.]DIVERTER_STATE/4} , 3, 4
)
)
)
)
I have this expression where {[.]DIVERTER_STATE/#} is the tag path. For each number value, I would like to make it turn a different colour and some of them blink between colours. Does anyone know if this is possible or if I will have to make another tag which has this expression in it and then bind the colour to that tag?
Thanks!
Assuming this is Vision, I actually stay away from the style customiser for colours as they then become magic colours - colours that are once off's with no link back to a variable or constant. For Vision, I use a collection of colours defined with client tags, unfortunately using RGB colour model (as opposed to HSL which is human-readable as Vision can't interpret HSL). I reference these style tags in expressions