Configuring a PushButton Animation for a String Value
- Last UpdatedJul 13, 2023
- 2 minute read
You can configure an element with a pushbutton to set a string value.
To configure an element with a pushbutton animation to set a string value
-
Select the element.
-
On the Special menu, click Edit Animations. The Edit Animations dialog box appears.
-
Click the Add icon and select Pushbutton. The pushbutton animation is added to the Animation list and the Pushbutton state selection panel appears.
-
Click the Analog button. The String Pushbutton configuration panel appears.
-
In the String box, type an equipment.item reference or browse for one by using the browse button.
-
From the Action list, select:
-
Direct so the value becomes Value1 when the element is clicked and the mouse button held. The value returns to Value2 when the mouse button is released.
-
Toggle so the value becomes Value1 if it is Value2 and Value2 if it is Value1 when the element is clicked
-
Set so the value is set to Value1 when the element is clicked.
-
-
In the boxes Value1 and, if applicable, Value2, type string values, equipment.item references or references.
-
Verify that the input modes of the Value1 and Value2 boxes are set correctly. Click the Input mode icons to set a static values or an equipment.item references or expressions.
-
You can configure the value to be written when the mouse button is released instead. Select On button release. This does not apply if you select Direct as action.
-
You can configure the value to be written:
-
Continuously by selecting the Continuously while button is pressed. Also specify the frequency the value is to be sent, by typing a value in the Delay between value send box.
-
One time by clearing the Continuously while button is pressed.
This does not apply if you select Toggle as action.
-
-
Specify that the pushbutton action is executed by pressing a key or key combination. In the Shortcut area. Select a shortcut key in the Key list. Select CTRL and/or SHIFT to combine the shortcut key with the Ctrl key and/or Shift key.
-
Preview the pushbutton run-time behavior by clicking Button in the Preview area.
-
Click OK.