Example
by: | Alex del Bondio |
---|---|
published: | August 2018 |
description: | Change fade and release times or overlap for a playback grid |
remarks: |
Remarks
adb import Live Timing
that will import all macros to pg11 of the macro workspace<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <!-- live time macros example --> <macro id="adb.Macros.livetime1" name="Live Time 1s"> <sequence> <!-- Remove Halos --> <step>Playbacks.Editor.Macros.SetTargetHandle("adb.Macros.livetime0")</step> <step>Handles.SetSourceHandleFromHandle(Playbacks.Editor.Macros.Target.Handle)</step> <step>Handles.RemoveHalo()</step> <step>Playbacks.Editor.Macros.SetTargetHandle("adb.Macros.livetime1")</step> <step>Handles.SetSourceHandleFromHandle(Playbacks.Editor.Macros.Target.Handle)</step> <step>Handles.RemoveHalo()</step> <!-- repeat for macros as needed --> <!-- Set Times --> <!-- Handles.SetSourceHandleRange(group, indexList) --> <step>Handles.ClearSelection()</step> <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", null)</step> <step>Handles.SetSourceHandle("PlaybackWindow", 0)</step> <step condition="Playbacks.IsCueHandle(Handles.SourceHandle)"> ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Handles.SourceHandle)</step> <step>ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackReleaseTime", time:1)</step> <step>Playbacks.Editor.EnsurePlaybackCueSelected()</step> <step>ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:1)</step> <step>Handles.SetSourceHandle("PlaybackWindow", 1)</step> <step condition="Playbacks.IsCueHandle(Handles.SourceHandle)"> ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Handles.SourceHandle)</step> <step>ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackReleaseTime", time:1)</step> <step>Playbacks.Editor.EnsurePlaybackCueSelected()</step> <step>ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:1)</step> <!-- repeat for playbacks as needed --> <step>Handles.ClearSelection()</step> <!-- Set Halo --> <step>Playbacks.Editor.Macros.SetTargetHandle("adb.Macros.livetime1")</step> <step>Handles.SetSourceHandleFromHandle(Playbacks.Editor.Macros.Target.Handle)</step> <step>Handles.SetPendingHaloToSystemColour("Yellow")</step> <step>Handles.ClearSelection()</step> </sequence> </macro> <!-- overlap macros --> <macro id="adb.Macros.liveOverlap50" name="Live Overlap 50"> <sequence> <!-- Set Overlap --> <step>Handles.ClearSelection()</step> <step>Handles.SetSourceHandle("PlaybackWindow", 0)</step> <step condition="Playbacks.IsCueHandle(Handles.SourceHandle)"> ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Handles.SourceHandle)</step> <step>Playbacks.Editor.EnsurePlaybackCueSelected()</step> <step>ActionScript.SetProperty.Float("Playbacks.Editor.Times.CueFixtureOverlap", 0.5)</step> <!-- repeat for playbacks as needed --> <step>Handles.ClearSelection()</step> </sequence> </macro> </avolites.macros>
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Set Times
<step condition=“Playbacks.IsCueHandle(Handles.SourceHandle)”>ActionScript.SetProperty(“Playbacks.Editor.SelectedPlayback”, Handles.SourceHandle)</step>
makes sure only playbacks get selected (no macros, groups, etc which could stop the macro halfway)ActionScript.SetProperty(“Playbacks.Editor.Times.PlaybackReleaseTime”, time:1)
sets a release time of 1sPlaybacks.Editor.EnsurePlaybackCueSelected()
Ensures a playback cue to apply the fadetime to is selectedActionScript.SetProperty(“Playbacks.Editor.Times.CueFadeInTime”, time:1)
sets a fade time of 1sRemove Halo
Playbacks.Editor.Macros.SetTargetHandle(“adb.Macros.livetime0”)
selects a particular macro based on its macroid. Copied macros seem to become a new macro id.Handles.SetSourceHandleFromHandle(Playbacks.Editor.Macros.Target.Handle)
selects the actual handle the macro is onSet Halo
Handles.SetPendingHaloToSystemColour(“Yellow”)
sets a yellow halo on the macros just firedOverlap
ActionScript.SetProperty.Float(“Playbacks.Editor.Times.CueFixtureOverlap”, 0.5)
sets an overlap of 50%Import
adb import Live Timing
is a macro that imports the whole set of macros onto page 11 in the macros workspace