Skip to reading
Visual Scripting in Depth

Expose a reviewed function to designers

Edition 0.86.4.7

0.86.4.7 tutorial edition with new lessons for Studio 0.86.4.6 and 0.86.4.7. Earlier chapters, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations
PCA 3D ADVENTURE STUDIO                                                                         Visual scripting in depth

STUDIO 0.86.4.7 • LESSON 1 OF 4

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.

Related original lesson | p. 51 Tutorial edition 0.86.4.7

Page 94 of 97Permalink
Go to page