Example
by: | Sebastian Beutel |
---|---|
published: | August 2018 |
description: | Set a playback cue's fade-in time |
remarks: |
This is also an example how time:x
is parsed into a time value.
See also http://forum.avolites.com/viewtopic.php?f=20&t=5790.
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="Wiki.Macros.CueFadeintime3" name="Cue Fade-In Time 3s"> <sequence> <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"Location=Playbacks,1,1")</step> <step>Playbacks.Editor.CueSelection.SelectCueByNumber(handle:"Location=Playbacks,1,1", 3)</step> <step>ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:2.5)</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
ActionScript.SetProperty(“Playbacks.Editor.SelectedPlayback”, handle:“Location=Playbacks,1,1”)
selects a particular playback based on its LocationPlaybacks.Editor.CueSelection.SelectCueByNumber(handle:“Location=Playbacks,1,1”, 3)
selects a particular cue of a playback and brings it into the editorActionScript.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.