Back to Nexara

Visual scripting

Blueprint style scripts with execution pins, variables and timed events, attached to scene objects.

The Wave Clock script in Nexara, with a node that passes Time to the Ocean Waves graph, and a variables panel.

Scripts are attached to scene objects and run in Play mode. They use the same graph framework as the shader and geometry nodes, with their own runtime in src/scripting/.

How a script runs

Execution pins: these set the order. A node runs whatever is linked to its execution output and then returns.

Data pins: these carry bool, int, float, vector, string or object values. A linked data pin is evaluated when a node reads it, as in Blueprints, and an unlinked pin uses the value typed on the node.

Object pins: these reference a scene object. A value of 0 means the script's own object.

Delays: a node can fire a pin after a set amount of play time, and the chain that called it continues immediately.

Node state: each node has per-node state, plus access to the scene and the frame's time.

Driving geometry from a script

A script's variables can be read by geometry graphs on the same object. In the Wave Clock script in the screenshot, Event Tick runs every frame and sets a Time variable to Get Game Time multiplied by the Speed variable. An Ocean Waves geometry graph reads that value and animates the mesh during play.