Node: Script

From Waltz
Revision as of 20:35, 28 July 2019 by Patrick Angle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Script Node allows you to execute a Script Expression every frame, or only when a specific condition is met. The latest result of the script is available as the output of this node.

Settings

Expected Type Details Default
trigger Boolean The trigger that must be true for the script to execute. true
script Any The body of the function that will execute when trigger is true.
if (Global.currentFrame % Global.targetFPS == 0) {
    print("Hello, world!");
}

Parameters

Type Details
output Any Note: The parameter is read-only. The result of the last execution of the script. This value remains the same until the next time the script is executed.

Functions

There are no functions exposed by this node.

Example Usage

No examples provided.

Nodes
Devices ArtNet Input · ArtNet Output · Interactive LED Processor · NDI™ Input · NDI™ Output · OSC Input · OSC Output · Projector · SensorLink · TCP · TUIO Output · UDP Input · UDP Output · Watchout Media Server
Objects LED Tile Layout · List · Map · Random Number · Simulated Touch · Timer · Value · Wave
Operators Blend · Change · Clip · Cluster Tracker · DMX Multiverse Merge · Ease · Filter · Hold · JSON Mapper · JSON Stringify · Logic · Math · Proximity · Range · Rotate · Scale · Shear · Smooth · Touch Mapper · Translate
Scenes External Scene · Material Scene
Materials Graph · Touch Material
Scripting Script Function · Script
Comments Comment