23.02.2014 Views

Rack Palette - Operators Manual - Strand Lighting

Rack Palette - Operators Manual - Strand Lighting

Rack Palette - Operators Manual - Strand Lighting

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Macros and Show Control<br />

Macro Editor & Scripts<br />

The Lua Language<br />

Advanced scripting in <strong>Palette</strong> uses the Lua programming language and can be<br />

constructed to execute very complex routines that access the Processor's operating<br />

system, file system or other external non-lighting related devices. Lua is a full<br />

featured programming language that offers IF THEN ELSE type routines as well as<br />

user definable functions, string manipulation and local and global variable storage.<br />

If you just want to run cues or control your media player or Power Point, you can,<br />

but do not need to use Scripts. Common tasks can be achieved using simple Macro<br />

Commands.<br />

This topic can never cover the extensiveness of what Lua has to offer. It is a very<br />

mature language that has a avid group of uses easily found on the web. To describe<br />

Lua a little more succinctly, we took this from www.lua.org:<br />

Lua combines simple procedural syntax with powerful data description constructs<br />

based on associative arrays and extensible semantics. Lua is dynamically typed,<br />

interpreted from bytecodes, and has automatic memory management with garbage<br />

collection, making it ideal for configuration, scripting, and rapid prototyping.<br />

The HC Library<br />

To make Lua capable of doing more than setting Variables in <strong>Palette</strong>, we've<br />

extended the language by writing a specific HC library that talks directly with<br />

<strong>Palette</strong>'s fade engine. All variables and library calls in Lua are case sensitive, so<br />

we've made it easy by providing you a list of available macros calls right in the editor:<br />

Below is a list of available calls to the HC library. You will find that many of the<br />

routines are almost exactly like the common Macro Commands, but the syntax is<br />

slightly different. There are also some calls here that are not available as<br />

Commands.<br />

Cue List Execution<br />

HC.CueListGo('cue list')<br />

HC.CueListHaltBack('cue list')<br />

HC.CueListHalt('cue list')<br />

HC.CueListRelease('cue list')<br />

HC.CueListAssert('cue list')<br />

HC.CueListGotoAndHalt('cue list', cue)<br />

HC.CueListGotoAndExecuteFollows('cue list', cue)<br />

283 <strong>Palette</strong> OS Operations <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!