Package heronarts.lx.script
Class LXScriptEngine.ScriptInterface
java.lang.Object
heronarts.lx.script.LXScriptEngine.ScriptInterface
- Enclosing class:
LXScriptEngine
Interface of methods exposed for Javascript to call back up into the LX device
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInclude a filevoidUsed by the script to declare a java script knobvoidUsed by the script to declare a java script knob with discrete valuesvoidUsed by the script to declare a java script togglevoidUsed by the script to declare a java script trigger
-
Constructor Details
-
ScriptInterface
public ScriptInterface()
-
-
Method Details
-
include
Include a file- Parameters:
fileName- File name, path relative to parent file- Throws:
IOExceptionScriptException
-
knob
Used by the script to declare a java script knob- Parameters:
key- Variable name/path for the knoblabel- Label of knobdescription- Helpful description of knobdef- Default value
-
knobi
Used by the script to declare a java script knob with discrete values- Parameters:
key- Variable name/path for the discrete fieldlabel- Label of fielddescription- Helpful description of fielddef- Default valuerange- Range of values [0, range-1]
-
toggle
Used by the script to declare a java script toggle- Parameters:
key- Variable name/path for the togglelabel- Label of toggledescription- Helpful description of toggledef- Default value
-
trigger
Used by the script to declare a java script trigger- Parameters:
key- Variable name/path for the triggerlabel- Label of triggerdescription- Helpful description of triggercallback- Callback invoked when trigger fires
-