Macro editing behavior

I am trying to write a channel check macro to check 132 lights on a truss. I wrote the macro using learn mode: 513 @ full [channel check} [enter] [next] [next] [next]...132 next commands.

I need to add a {macro wait} between each of the [next] commands. I would like to use a wait time of .5 but I have found that this command kicks the console out of channel check mode. That is the first issue.

The second issue is when in the macro editor to add the {wait} 1 command after the 3rd {wait} the cursor jumps ahead to the next line of the macro. This becomes a massive PITA to edit this. Is there a way to insert the {wait} command in learn mode?

Parents Reply Children
  • I tested this running a slightly shorter loop of 10

     

    513 @ [Full] {check} [enter]

    {macro loop begin} 10 [enter]

    {macro wait} 1 [enter]

    [Next] {macro loop end} [enter]

    [Clear]

    It seems to be running the loop 2 additional times. I will just modify the loop count to reflect this. But is it posible have a macro wait time of less than 1 second? 

  • Well, technically, it's not running the loop 2 extra times. The first channel is not part of the loop, and the loop doesn't count the first iteration, the number after the {macro loop begin} is telling the desk to repeat the loop x times *after* it's gone through the first iteration. So if you have a {macro loop begin} 1 , it will execute the sequence twice; It runs through the sequence and then *loops* the sequence one time.

    If it only ran through once it would not be a loop. I agree that this seems a bit counter-intuitive, but is logical.

    As for the macro wait of less than 1 second: there is a bug that won't let you use decimals in macro wait times. The dev team is aware of this and should be fixed shortly (right, Dan?).

    Hope that helps. 

    -M

  • Hi,

     

    Works for me, but is there a way to get the macro to stop and then restart from that same point?  Invariably when you go through the rig you want to check something and then move on.



    [edited by: eugp at 2:11 PM (GMT -6) on Wed, Oct 23 2013]
  • You can deliberately insert "Wait for Input" instructions in your Macro but I don't think you can have a Macro listen for unscheduled user actions.

  • eugp said:
    but is there a way to get the macro to stop and then restart from that same point?

    You can't do it natively inside the macro - but you can use a group as a variable.  Here's is some sample code - Group 9991 is the variable.

    Type your first channel and hit the macro - off you go.  If you stop the Macro the group will hold the information.

    Adding a second macro the recalls that particular group makes the UI fairly seemless.

    EDIT / I just tried it with Macro_Wait .5 * and it works fine.

     

Related