April 18, 2018 01:10AM
GLADs IntelliVars are small Lua scripts embedded in
$variables for easy direct access via commandline/macros.

These may be useful for people who find Lua too scary and complicated but still want a piece of the pie, served within their comfort zone of commandline and macros

Download the attached Macro, import and run it once, to
build the variables and get access to the functions described below

----------------------------
$CAPTURE
----------------------------

calling this variable creates temporary new variables C_.... containing properties of the current destination.

Example:

CD Preset 1.1
$CAPTURE 
CD /

(add a small wait (>0.05s) to the $capture line, to allow the captureprocess finish before continuing with the macro)

Result:
$C_SPECIAL = Normal
$C_NO = 1.1
$C_NAME = Open

to not flood your list of vars, these temporary C_variables will self-delete after 1 second, so make sure to use, or copy the ones you need, in the proceeding lines of your macro:

SetUserVar $myNameForLater = $"C_NAME"


----------------------------
$LOOP***
----------------------------

The LOOP IntelliVars may be used for repeating commands
similar to a regular FOR loop.

Example:

$LOOPFROM 1 ; $LOOPTO 3
$LOOPCMD "Fixture @ At 50 ; Store Exec 10@"
$LOOPCMDADD " ; Label Exec 10@ 'F@' "
$LOOPRUN

Result:
Fixture 1 At 50
Store Exec 101
Label Exec 101 "F1"
Fixture 2 At 50
Store Exec 102
Label Exec 102 "F2"
Fixture 3 At 50
Store Exec 103
Label Exec 103 "F3"


Use @ wherever in they syntax where you want to
insert the loopcounter.
If you need quotes inside your syntax, use single quotes,(they gets replaced with regular double quotes when loop is executed)
Remember to start with semicolon and space in the cmdtext, if you want to add additional syntax via $LOOPCMDADD .



----------------------------------
$FORMULA, $CALCULATE
----------------------------------

These IntelliVars may be used to perform arithmetic operations on uservariables

Example:

$FORMULA "$myresult=($var1+$var2)/2" ; $CALCULATE


sets the uservariable $myresult to the mean average of $var1 and $var2.


Happy programming

Andreas



Edited 8 time(s). Last edit at 09/02/2018 10:44PM by glad.
Attachments:
open | download - GLADs intelliVars v2b.xml (5.2 KB)
Subject Author Posted
GLADs IntelliVars - tools for macro writing Attachments glad April 18, 2018 01:10AM
Re: GLADs IntelliVars - tools for macro writing bentoylight April 23, 2018 08:38PM
Re: GLADs IntelliVars - tools for macro writing Ryan Kanarek April 23, 2018 09:33PM
Re: GLADs IntelliVars - tools for macro writing glad April 24, 2018 09:02AM
Re: GLADs IntelliVars - tools for macro writing jfguedes May 15, 2018 12:28PM
Re: GLADs IntelliVars - tools for macro writing konfuzius_sagt June 13, 2018 02:57PM
Re: GLADs IntelliVars - tools for macro writing glad June 14, 2018 01:10AM
Re: GLADs IntelliVars - tools for macro writing konfuzius_sagt June 14, 2018 12:44PM
Re: GLADs IntelliVars - tools for macro writing glad June 14, 2018 01:10PM
Re: GLADs IntelliVars - tools for macro writing Attachments konfuzius_sagt June 14, 2018 01:34PM
Re: GLADs IntelliVars - tools for macro writing glad June 14, 2018 04:07PM
GLADs IntelliVars - Update glad September 02, 2018 10:48PM
Re: GLADs IntelliVars - Update Attachments captainflo22 August 02, 2019 04:04PM
Re: GLADs IntelliVars - Add fade time to cue Attachments jfguedes September 01, 2019 05:09PM
Re: GLADs IntelliVars - Add fade time to cue glad September 01, 2019 09:43PM
Re: GLADs IntelliVars - Add fade time to cue jfguedes September 02, 2019 12:38AM
GLADs IntelliVars - bugfix glad September 01, 2019 03:46PM



Sorry, only registered users may post in this forum.

Click here to login