Enable push buttons
- Last UpdatedMar 17, 2025
- 2 minute read
You can create touch sensitive objects that start action scripts by using touch push button links.
Action scripts can set tags to specific values, start and control other applications, execute functions and so on.
Create a discrete value touch link
-
Select the object you want to apply the animation to.
-
On the Draw menu, in the Mode group, select Animate.
Alternatively, right-click the object and then select Animation Links.
The Animation Links window appears.
-
In the Touch Pushbutton area, select Discrete Value.
The Pushbutton -> Discrete Value dialog box appears.

-
In the Tagname box, type a discrete type tagname.
-
Select Key to assign a key equivalent to the link.
-
In the Action area, select one of the following types:
-
Select Direct to set the value equal to 1 as long as the push button is pressed and held down. The value automatically resets to 0 when the button is released.
-
Select Reverse to set the value equal to 0 when the push button is pressed and held down. The value automatically resets to 1 when the button is released.
-
Select Toggle to reverse the state of the discrete tag.
-
Select Reset to set the value equal to 0.
-
Select Set to set the value equal to 1.
-
-
Select OK.
Create an action script link
-
Select the object you want to apply the animation to.
-
On the Draw menu, in the Mode group, select Animate.
Alternatively, right-click the object and then select Animation Links.
The Animation Links window appears.
-
In the Touch Pushbutton area, select Action.
The Touch-> Action Script dialog appears.

-
In the Condition Type list, select a script type. For more information on the types of action scripts, see Script triggers.
Note: If you assign a key equivalent link to an action push button and to the same key is used for a key script, the key equivalent link you assign takes precedence over the key script.
-
In the Script Editor window, type the script to execute when the object is activated.
-
Select OK.