Skip to reading
New Features Workbook: 35 Hands-on Lessons

Choose a script or an exposed function

Edition 0.86.4.7

37-page workbook using example workbenches included with the Studio release. The separately attached PDF is byte-identical to this ZIP copy and is included once.

Download PDFView PDF page

Write choices and ordered actions

STUDIO 0.86.4.6 / 0.86.4.7 • LESSON 14 OF 35

An action list can start a script record, or it can call one named function and supply specific arguments. The current shared action label is Run Script.

1. Run a whole record

In the action list or GUI event choose Run Script. Select the intended script record from the available choices. When following an older lesson that says to choose Run Visual Script in this menu, choose Run Script. Stored action identifiers and existing script-language commands can retain their older spelling.

2. Call a specific function

To pass arguments, expose a function in the script’s Functions as Actions and Nodes dialog, choose Use Definitions, and save the script. At the caller choose Call Script Function, select the function and fill its arguments. Use a literal for a fixed amount or Expression for a value supplied by the triggering event.

3. Check the result in context

Trigger the actual caller in Runtime Preview. For a GUI tuner, rotate once and observe the value passed to the function. If an action appears to execute twice, inspect both the primary event action and Additional Event Actions. Each configured action runs in its own place in the list.

WHAT TO CHECK

A menu-label change does not require rewriting a working BASIC program, PCA Script command or stored action ID. When updating a caller for a changed signature, confirm every argument and run the interaction again.

Page 16 of 37Permalink
Go to page