Configuring a PushButton Animation for an Analog Value
- Last UpdatedJul 13, 2023
- 2 minute read
You can configure an element with a pushbutton to set an analog value.
To configure an element with a pushbutton animation to set an analog 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 Analog Pushbutton configuration panel appears.
-
In the Analog 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
-
Increment so the value is increased by Value1.
-
Decrement so the value is decreased by Value1.
-
Multiply so the value is multiplied with Value1.
-
Divide so the value is divided by Value1.
-
-
In the boxes Value1 and, if applicable, Value2, type analog values, equipment.item references or references.
-
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 the button multiple times to preview the value changes over a period of time.
-
Click OK.