Example: how to change element properties using scripts
- Last UpdatedJul 16, 2024
- 1 minute read
You can change some properties of elements using scripting. This lets you configure additional runtime behavior to your elements in addition to design-time animation of those elements.
When you write scripts for the graphic or for one of its elements, you can use your HMI's attribute/tag browser to show and select a:
-
Property of an element
-
Custom property of the graphic
If a reference is not unique, the following order applies:
-
Dimensioned variable references
-
Graphic properties references
-
Custom property references
-
Object attribute references
To select an element property or a graphic custom property
-
Open your HMI's attribute/tag browser. It shows the element names and the properties of the selected element.
-
Select an element or graphic from the list. The right pane shows the accessible properties of the selected element or graphic.
-
Select a property from the right pane and click OK. The reference appears in the script window.