I'd like to change the color of the pipes on a case-by-case, so I tried using Color() in an expression linked to the fill property.
This doesn't work as expected. In the property editor, the color is red, in the work windows the pipe is green (as set manually before the bind)..... and in the web viewer the pipe is gray as default....
Could someone please explain my error?
I don't think perspective uses java colors anywhere.
Try with "red" instead, or an hexadecimal color code if you want more control.
edit: Or probably anything that css can interpret as a color.
1 Like
@pascal.fragnoud is correct. The color() Expression Function doc page says,
NOTE
This function was designed to return color objects to Vision bindings, and will not work with Perspective bindings. Instead, Perspective color properties can simply use string hex codes to derive a color from a binding, for example: "#00FF00".
1 Like
Thx for your support
I did with strings