Ok, day 3 of my introduction to Ignition and I discovered Paintable Canvas. Very cool and I see the power, I even made a pretty cool pump graphic of my own but it is time to animate.
In the repaint script I created a couple of variables that I use for the GradientPaint.
drkgrad = Color(27,148,31)
ltgrad = Color(216,255,234)
I have created dynamic properties for “Run” and “Fail” which are bound to the PLC and “Status” which is bound to an expression that is sets to 0,1 or2 based on Run and Fail.
What is the best way to dynamically set these colors based on “Status” in the repaint script? Also is there a way to set this globally? Perhaps in a table that the datasets could be bound to so one could change the color animation scheme for the entire project in a single location.
Sorry I know these a rookie questions but any insights would be great. Hopefully by the time I complete this conversion from InTouch my posts will be much more intelligent.