Example
by: | Sebastian Beutel, August 2024 |
---|---|
published: | here |
description: | add/remove autoloads to/from a cuelist cue. |
remarks: | idea Sebastiaan Groen, https://www.facebook.com/groups/1811437589141428/posts/3826930897592077/: “is it possible to add and remove an autoload from a cuelist via a macro?” |
File with macros for cues UN 1001~1005 here: setautoloads.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="Wiki.Macros.Autoload.Add.CL10C10.1001" name="Add AL CL10C10 1001"> <description>Adds autoload for cue UN 1001 to cuelist UN 10 cue 10.</description> <sequence> <step>UserMacros.RecallMacroById("Wiki.Macros.Autoload.RemoveAutoloads.CL10C10")</step> <step>Playbacks.Editor.CueSelection.SelectCueByNumber("cueListHandleUN=10", 10)</step> <step>Playbacks.Editor.Autoload.Add("cueHandleUN=1001")</step> <step>Playbacks.Editor.CueSelection.Clear()</step> </sequence> </macro> <!-- add more macros here for more autoloads --> <macro id="Wiki.Macros.Autoload.RemoveAutoloads.CL10C10" name="Remove Autoloads from CL 10 C10"> <sequence> <step>Playbacks.Editor.CueSelection.SelectCueByNumber("cueListHandleUN=10", 10)</step> <step condition="Handles.IsClaimed('cueHandleUN=1001')">Playbacks.Editor.Autoload.Remove("cueHandleUN=1001")</step> <step condition="Handles.IsClaimed('cueHandleUN=1002')">Playbacks.Editor.Autoload.Remove("cueHandleUN=1002")</step> <step condition="Handles.IsClaimed('cueHandleUN=1003')">Playbacks.Editor.Autoload.Remove("cueHandleUN=1003")</step> <step condition="Handles.IsClaimed('cueHandleUN=1004')">Playbacks.Editor.Autoload.Remove("cueHandleUN=1004")</step> <step condition="Handles.IsClaimed('cueHandleUN=1005')">Playbacks.Editor.Autoload.Remove("cueHandleUN=1005")</step> <step>Playbacks.Editor.CueSelection.Clear()</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
UserMacros.RecallMacroById(“Wiki.Macros.Autoload.RemoveAutoloads.CL10C10”)
Playbacks.Editor.CueSelection.SelectCueByNumber(“cueListHandleUN=10”, 10)
Playbacks.Editor.Autoload.Add(“cueHandleUN=1001”)
Playbacks.Editor.CueSelection.Clear()
unselects the cuelist cueHandle.IsClaimed
is used as step condition