Dynamic Shape Appearance

Can someone point me to a resource for dynamic shape appearance? I want to change the fill paint/gradient/stroke style based on PLC variables but I am unsure of the syntax.

Looking for something similar to the toBorder() instruction used for border editing.

vision or perspective?

Vision

By far the easiest way to do this would be to use the style customizer.

  1. Create a custom property on your shape:
    Vision Component Customizers - Ignition User Manual 8.1 - Ignition Documentation
  2. Bind the custom property to your tag (or, if you’re using multiple tags, use an expression to collapse them into a single value. If you’ve got many boolean tags, consider binEnc).
  3. Use the style customizer to set up styles to react to that custom property:
    Vision Component Customizers - Ignition User Manual 8.1 - Ignition Documentation
    You can choose the custom property as the ‘driving property’, then change as many appearance properties on the component as you want to in response to change of the driving property.
2 Likes