How to follow a Command after a loop

BECOME PART OF THE COMMUNITY - Sign up here
  • 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:

  • tk11de

    Changed the title of the thread from “How to follow a Command after loop” to “How to follow a Command after a loop”.
  • The Timer function is intended for loops that should be executed totally separately from your main script.

    if you want something in your script to follow after a loop, use an internal loop via generic Lua commands like for, while or repeat, and yield processing to other plugins, in the time you want your loop to wait.

    - use CmdIndirectWait instead of Cmd, to allow the previous command to process before the next command is executed


    something like this (not tested)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!