Skip to reading
Visual Scripting in Depth

39. Fill in definitions and use them

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

Figure 26. Choose the entry, then declare amount as an int with a default value of five.

Source table from 39. Fill in definitions and use them, page 43
ControlWhat to enter
Function Nameaward: a valid identifier, unique within this script.
Display NameAward Workshop Points: the friendly name in pickers and a selected function-call node.
DescriptionA short statement of what the function changes or returns.
Entry nodeThe first action of this visual function.
Parameteramount, type int, default 5.
Expose as Action and Visual NodeChecked if authors should be able to choose it.

Use Definitions accepts the valid definitions and closes the window. It does not run the function and does not place a node on the canvas. In the Visual Script editor the definitions are written to the script record through the normal edit signal; save the project afterward.

Figure 27. Accept the edited definitions.

If the window stays open, read its validation message and scroll as needed. A missing visual entry, duplicate/invalid function name, repeated parameter name or wrongly typed default prevents acceptance. A text-script editor may also require its own Apply Changes step.

Page 43 of 93Permalink
Go to page