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!
Here you can find different example Pangoscripts to help you see different ways scripting can be used. They also should just work if copy and pasted into BEYOND, as-is, or modified to your needs.
CodeName "Autosave" TimelineQuickSave Sleep 60000 //Wait 1 Minute Restart
This code is designed to create an autosave script for your timeline, since saving does pause output, it's not recommended to leave this on for operating your show. The Sleep is in milliseconds, so 60,000 is 60 seconds, you can change the timeframe to your desired save duration, just know it does save a separate backup, so more frequent saves will eat up more storage.
CodeName "Daily Schedule" Autostart WaitForTime 19,45,0,0 //Wait for 7:45 StartCue 1,1 WaitforCueStop 1,1 StartCue 1,10 WaitforCueStop 1,10 StartCue 1,21 WaitforCueStop 1,21 StartCue 1,41 WaitforTime 23,0,0,0 StopCue 1,41 WaitForTime 23,59,59,0 Sleep 10000 RunApp "C:\Windows\System32\shutdown", "-r -t 10" // full exe file name, parameters //These parameters on this shutdown, sets it to "restart" then "Time 10 seconds" These options can be found on the web. ExitBeyond
This code is an example for an install where you want a sequence of cues (maybe timelines saved to cues) to run at specific times in sequence, And at the end the script waits for the clock to turn over, then restarts the machine, if you put beyond in the windows startup folder, it will auto start beyond, the script and start the cycle. You will need the “RunApp” command enabled, which is in configuration, and will also need to check the box which doesn't ask for confirmation on exit of beyond in the configuration window for this to be fully automatic, an example of automation scripting.
CodeName "Flip Zones > - <" Zone.0.SizeX = -100 Zone.1.SizeX = -100 Zone.2.SizeX = -100 Zone.3.SizeX = -100 Zone.4.SizeX = 100 Zone.5.SizeX = 100 Zone.6.SizeX = 100 Zone.7.SizeX = 100 Master.DISPLAYPOPUPTIMEOUT=.5 displaypopup "> - <" Exit
This code exploits the fact that each zone has parameters associated with it on a level that is usually not seen by the user, technically there are these parameters, and also GEO parameters, these parameters are content values, and geo is for zoning, it's important to not use the GEO ones, as that will move your zone. These just affect the content within a zone. These parameters are also the same as what BEYOND server modifies, and by using numbers of zones instead of the names, it won't matter what the zone names are, just that they are in order. It also does a popup to let you know what you have selected, something that may be useful for a midi controller trigger, where the button has no label.
Codename "Pull Tempo From DMX" WaitForDmx 501 //Channel at 1 will run code beattap sleep 200 // Make DMX reset to zero on console less then 100ms restart
This code is imperfect, but it will tap the beat tap when the channel selected “updates” any change in value, so if you have a flash button with a cue that just sets the channel to full and off when you release, it will tap the temp, the sleep is to wait for your tap on the console to reset, 200ms is enough to still get 200bpm out of your taps, and a safe spacing for the reset. You could macro on your console to automatically do this from a speed master or just use it to tap the bpm. To make this code better, you would really want a conditional trigger, where when it hits value of 255 it taps but, this works and is much simpler of a code.
Codename "Restart Show Soft" AnimateProp "Master.AudioVolume", 100,0,5000 sleep 5000 TimelineSetPos 0 Master.AudioVolume = 100 TimelinePlay Exit
This script demonstrates the ability to animate objects over time, Animate Prop goes from value1, to value 2, over value in ms. In this case, a code is written to restart a timeline, but to fade out the audio before doing so. You could animate Volume and master brightness at the same time which could be interesting too. Then resets the values by just setting their value and plays the show again.