Page 1 of 1

how to write macro time ?

Posted: 28 Feb 2019, 16:32
by jacklighting
need to macro time fixture / programing

time fixture 1 thru 10

THX

Re: how to write macro time ?

Posted: 28 Feb 2019, 20:35
by jacklighting

Code: Select all

<avolites.macros>
  <macro id="Macros.Fade" name="Fade 1s to 10s">
    <sequence>
      <step>ActionScript.SetProperty("Playbacks.Editor.Times.SetControlFadeTimeOn", time fixture p 1 thro 10)</step>
     </sequence>
  </macro>
</avolites.macros>


it wrong , i not understand

Re: how to write macro time ?

Posted: 06 Mar 2019, 00:56
by Gregory
Try the following:

Code: Select all

<avolites.macros>
  <macro id="Macros.Fade" name="Fade 1s to 10s">
    <sequence>
      <step>Command.RunCommand("1 THRO 10 TIME FIXTURE 1 THRO 10")</step>
      <step>Playbacks.MergePlaybackCue(userNumber:2, false)</step>
      <step>Programmer.Editor.ClearAll()</step>
     </sequence>
  </macro>
</avolites.macros>

The first step runs a command which selects fixtures 1 through 10 and then sets the attribute fade times on those fixtures to the values 1 through 10. These times are in the programmer and can then be recorded into a playback which is what happens in the second step - in this case the playback is a single cue/memory, if you instead had a cue list you should instead use MergePlaybackStep e.g.:

Code: Select all

<step>Playbacks.MergePlaybackStep(userNumber:1, 1.0, false)</step>

The last step clears the programmer once you are done. You can use similar syntax to set delay times or to only set attribute times for a specific attribute group e.g Intensity by using the letter I.

Playbacks.Editor.Times.SetControlFadeTimeOn is a function that you call e.g.

Code: Select all

<step>Playbacks.Editor.Times.SetControlFadeTimeOn()</step>

rather than a property that you can set. In this case it does not take any parameters/arguments and is used to set the attribute fade time to On in the programmer (the opposite of Off), this will be applied to the currently selected attributes.