Skip to reading
Visual Scripting in Depth

Appendix C. Exposed visual function data

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 PDF page

Use Functions as Nodes for normal authoring. This reference shows the relationship between the definition and the two-node body described in lesson 38.

Code example
{
  "name":"award", "label":"Award Workshop Points",
  "enabled":true, "entryNodeId":"add",
  "parameters":[{"name":"amount","type":"int","default":5}]
}
Source table from Appendix C. Exposed visual function data, page 76
Body nodeDataConnection
add: ChangeVariablename score; operation add; value {"$param":"amount"}NEXT → result
result: Returnvalue {"$param":"amount"}No output.

The definition lives in that script record’s exposedFunctions array. entryNodeId must identify the actual first node. The definition name is the callable function name; the label is the friendly name.

A Call Script Function action selects the definition by its language table, script ID and function name. Use the picker instead of hand-constructing this key while learning.

Definitions are metadata. They do not rewrite a text function’s signature or invent a missing visual node. Disabling exposure hides the definition and makes existing exposed calls skip with a diagnostic until repaired.

Page 76 of 93Permalink
Go to page