Expression script question with colours

hello,

In vision you could bind to a color property and change it with

case(
{[Sample_Tags]OPC Custom Tags/Cond1Running}, // value
1, // case 1
color (0,0,0), // return 1
color (92,89,89)) // default

How do i do the same binding to a property in perspective? In the property editor i have bound the above case situation to Props>TextStyle>color but obviously doesnt work.

Whats the correct syntax to bind to a property in perspective

Thanks

Convert that RGB color to hex.

So instead of color(0,0,0) you would write “#000000” likewise

2 Likes

yea makes sense.

Cheers it worked.

Css can also do a string like this "rgb(250,0,0)"

1 Like