Table of Contents

Example

Change Playback Timings Grid

by: Alex del Bondio
published: August 2018
description: Change fade and release times or overlap for a playback grid
remarks:

adb_livetiming_12x12.xml

Remarks

functions

affected properties

Code

SetCueFadeInTime.xml
<?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>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

Set Times

Remove Halo

Set Halo

Overlap

Import

How to use it