Tools
Support
Pangolin Family of websites
Pangolin Laser Systems, Inc.
Kvant Lasers
Unity Lasers
ScannerMAX
Lasorb
Tools
Support
Pangolin Family of websites
Pangolin Laser Systems, Inc.
Kvant Lasers
Unity Lasers
ScannerMAX
Lasorb
This is an old revision of the document!
The main purpose of “scripting” is ability to add custom relation on various events, like a MIDI, DMX, ArtNet, Channels. The script typically has a few lines, and a line has one Command. Command may have a parameters. Typically parameter is a number (constant).
Supported float point , integer and hexadecimal numbers. Example:
All hexadecimal numbers much have 0x prefix, similar to C language, but without ending H.
There is not strict separation on integer and float point numbers.
Separator between command parameter could be space (“ ”) or a comma (“,”)
'.', ';', ',', ':', '!', '�', , '^', '+', '-', '*', '\', ' ',
'`', '[', ']', '(', ')', '{', '}', '?', '%','|','&','='
There are a few constants mostly for readability of the code. Each constant will be transformed to a number
This is required for commands like “MasterPause”.
A few examples of using commands:
VirtualLJ off
MasterPause Toggle
WaitForMidi 0x90, 10, Any
Syntax: if ( expression ) operator
expression - covered with brackets. Must be an expression with numerical result that gives “0” or not a “0”. So, for numerical variable it's possible to write “if (variable) …”.
Compare operators are: >, >=, <, ⇐, =, <>. They produces numerical result 0 or 1.
You can combine comparing operations with “&” and “|” bit-wise operators (but be sure that left and right side are “0” or “1”). It's recommended to cover complex operations into brackets - like “if 1)”
operator will be executed if condition gets non-zero result. If you want to place other operator after “if (condition) operator” - it must be divided with “;” - but it's better to place next operator on the next line
GOTO operator
Syntax: goto label
“label” is a name of position for a jump. The label can be placed before any operator and separated by “:” character. As example:
mylabel: WaitForBeat 4 … do something… goto mylabel
Operator GOTO can work with the labels inside the string variables. It means that you declare string variable, assign a label name to variable, and then you a variable in GOTO. Example:
var s s=“mylabel” goto s
DisplayPopup “It does not work” exit
mylabel: DisplayPopup “It works”
VAR operator
PangoScript allow define local variables. The lifetime for the local variable defined by lifetime of the Scripter that execute PangoScript. As soon as the Scripter freed, all its local variables are removed as well.
All variables must be declared before the using. No need to specify the type of variable. The variable automatically adjust the type depending on value. Internally supported integer, float and string variables. The declaration start from VAR operation and the follow one or more variable names. As example:
var MyVariable var a,b,c
Before using the variable must be initialized by some value. Otherwise BEYOND will generate error and stop script execution. Example: var MyInteger, MyString MyInteger = 10 MyString = “Hello!”
All variables declared as VAR are local.
GLOBALVAR operator The variable can be declared as global. In this case, it visible in ALL scripts of BEYOND.