how to write macro time ?

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
jacklighting
Posts: 26
Joined: 27 May 2018, 12:41
Location: Thailand
Contact:

how to write macro time ?

Postby jacklighting » 28 Feb 2019, 16:32

need to macro time fixture / programing

time fixture 1 thru 10

THX
Last edited by jacklighting on 28 Feb 2019, 20:37, edited 1 time in total.
Best Regard , Sincerely :D
User avatar
jacklighting
Posts: 26
Joined: 27 May 2018, 12:41
Location: Thailand
Contact:

Re: how to write macro time ?

Postby jacklighting » 28 Feb 2019, 20:35

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
Best Regard , Sincerely :D
User avatar
Gregory
Posts: 1300
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: how to write macro time ?

Postby Gregory » 06 Mar 2019, 00:56

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.

Who is online

Users browsing this forum: No registered users and 17 guests