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

Expose a reviewed function to designers

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 illustrations

Expose functions to designers

STUDIO 0.86.4.7 • LESSON 22 OF 35

Turn a script function into a named action that can be reused in a GUI event, an action list or a visual graph.

1. Compare the declaration with the saved definition

Open the script and its Functions as Actions and Nodes dialog. Select a discovered declaration. Check the name, parameter order, types, literal defaults and return type against the current editor text. Discovery reads supported declarations. Dynamic definitions or computed defaults can need manual input.

2. Choose the author-facing name

Set a useful display name and category, for example Tune the radio in Instruments. Click Apply reviewed signature to bring the proposed signature into the draft. Check Expose as Action and Visual Node for the intended function, then choose Use Definitions. Apply or save your script edits.

3. Verify an existing caller

Open an event, graph or action list that calls the function. Inspect each argument. If the declaration changed, use Use current signature and keep matching arguments after reviewing the mapping. Fill any newly required input and save the caller. A fixed number works for a test, then an Expression can receive the event value.

The function review compares the discovered declaration with the saved, author-facing definition.

WHAT TO CHECK

Change one declared parameter in a project copy and reopen the caller. Confirm that the matching values survived and that the newly added argument has the intended value before running the action.

Page 24 of 37Permalink
Go to page