User Tools

Site Tools


macros:example:setplaybackallcuefadeintime

This is an old revision of the document!


Example

Playback - Set all playback cues' fade-in time

by: Sebastian Beutel
published: April 2020
description: Set the fade-in time of all cues of a cuelist
remarks:

This is also an example how time:x is parsed into a time value.

Developed from Playback - Set playback cue's fade-in time

functions

affected properties

Code

SetAllCuesFadeInTime.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Wiki.Macros.AllCuesFadeintime3" name="Cue Fade-In Time 3s">
    <sequence>
      <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"Location=Playbacks,1,1")</step>
      <step>Playbacks.Editor.CueSelection.SelectAll(handle:"Location=Playbacks,1,1")</step>
      <step>ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:3.0)</step>
  </macro>
</avolites.macros>

Explanation

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

  • ActionScript.SetProperty(“Playbacks.Editor.SelectedPlayback”, handle:“Location=Playbacks,1,1”) selects a particular playback based on its Location
  • Playbacks.Editor.CueSelection.SelectCueByNumber(handle:“Location=Playbacks,1,1”, 3) selects a particular cue of a playback and brings it into the editor
  • ActionScript.SetProperty(“Playbacks.Editor.Times.CueFadeInTime”, time:2.5) finally sets the fade-in time to the value. time:2.5 tells the parser what to do with the number 3, i.e. parse it as time value.

How to use it

  • while it's well possible to create some macros to set some playbacks to a given fade-in time, it does make more sense to integrate this into a bigger context like Create Workspaces in order to setup a known show environment.
You could leave a comment if you were logged in.
macros/example/setplaybackallcuefadeintime.1588235686.txt.gz · Last modified: 2020/04/30 10:34 by icke_siegen