Hi there,
I stuck in writing a Plugin which set a UserVariable plus give a symetrical view of fixtures. I used this as a Macro in MA2 cause there I was able to compare variables, which is in MA3 to be done by LUA only.
The plugin so far work well....expect that it won't make the reset of MATricks in the end. To explain what it should do:
1. activate Highlight
2. call a MATricks Pool Item
3. toggle 2 times through a selection
4. Reset the MATricks
5. deactivate Highlight
It all works fine...until step 4 and 5.
Where or how must I place this Cmd to Reset MATricks and Highlight? It need to be executed after the Timer-Function.
This is my syntax:
Code
local function main()
Cmd ('Highlight On')
Cmd ('MAtricks "x/ w2"')
local selectedFix = SelectionCount()
SetVar(UserVars(),"SelectedFixtureCount", SelectionCount())
local function SymDisplay()
Cmd ("Next")
end
local LoopWait = 0.15
local LoopCount = selectedFix
Timer(SymDisplay, LoopWait, LoopCount)
end
Cmd ('Reset Selection MAtricks')
Cmd ('Highlight Off')
return main
Display More