mule (noun) /myül/ - a macro under lua enchantment
Please scroll down this thread to find the latest version of the MULE creator plugin.
mule (noun) /myül/ - a macro under lua enchantment
Please scroll down this thread to find the latest version of the MULE creator plugin.
Very very cool, and fun!
Nice work
maybe a stupid question but could you explain what the plugin is for? I just installed it, but I don't understand what it does or what it's intended for. would be nice!
it is a tool that enables you to create more advanced macros, by using the Lua engine to interpret and playback the content of your macro.
the plugin upload in initial post contains a typo that prevents the menu-choice "Enchant existing macro" to work
to not only create new mules, but also enchant existing macros, please change line 169 of plugin version 1.0.0.0 from
Printf('MULE: enchanting '..macro.ToAddr())
to
Printf('MULE: enchanting '..macro:ToAddr())
or download this updated plugin version 1.0.0.1:
tips:
as macroline-names cannot contain the character tilde (~) which is normally used for unequal (~=), you can instead use the logical operator not in conjunction with equal (==), e.g.
[a == b] do something
[not a == b] do something else
Takk Andreas.
Helps a lot when I got a bunch of cues in a seq where a need a spacing on the cue number, and can store a follow cue in-between them.
Andreas hey, i tried to build a "clean sequence" macro. the idea is using my "clean cue" macro, which selects all attributes except dimmer of all fixtures in the current cue of the selected sequence which have zero output, sets them active and removes it cue only. works fine to this point.
now i used your MULE creator to create a loop which steps through the sequence cue by cue and executes the "clean cue" macro from first cue to last cue. my problems are:
- my "clean sequence" MULE macro creates an endless loop
- when i use syntax Macro "clean cue" it does not execute the macro, but when i use Macro 1 it works...
- syntax if output at 0 works, if output at 0 sequence 1 works, if output at 0 sequence 7(or whatever) does not work, if output at 0 if sequnece 1 does not
work
would be cool if you would have a look at it!
here some screenshots:
1.you need to put the conditions in the namefields of the macroline not in the commandfields.
2. do not use dollar sign when referencing user or global commandline variables inside square or curly brackets. the dollar sign is just to be used when recalling in regular commandline
the internal logic in mule is like this:
varname -> does the uservar varname exist then use that , else does the globalvar varname exist then use that, else does lua-expression varname exist then use that
your line 8 and 9 should look something like this
8: macrolinename : [counter < amount] macrolinecommand : {goto loopstart}
9: macrolinename : macrolinecommand : ClearAll
there should be no need for condition in line 9 as your condition in line 8 jumps bac, thus you will never get to line 9 unless that condition in line 8 is false
if output at 0 sequence 1 works, if output at 0 sequence 7(or whatever) does not work, if output at 0 if sequnece 1 does not
If I assume correctly what you want neither of these will works
maybe rather work on one sequence at a time ( the selected ) and use i.e
IfOutput At 0
If IfOutput Cue thru
- select the fixtures that has output of 0%
- but only the ones that has output from any cue (of the selected sequence)
Macro "Clean Cue"
works for me to embed macro in mule. are you sure that you quoted the name, had proper spelling, and din't include any action like Go+, Call or On etc.
Andreas hey, i changed the MULE right now as you told me to do and now it works fine. thank u for that and for the plugin, really, really helpful! the only thing that does not work is when i use syntax Macro "clean cue" it does not work, when i use Macro 1 it works. and i am sure that i wrote it correctly as you can see in the screenhot. that is strange.
don't know why it only works for you with macro number and not macro name.
maybe you could post the actual macros as exported xml-files.
these are the macros:
your macro 1 has the name "clean cue ", while you try to call it via the name "clean cue"
-notice the trailing space in actual the name.
clean cue[whitespace].xml
Don’t have an account yet? Register yourself now and be a part of our community!