macros:example:playbackgroupcreateadd
This is an old revision of the document!
Table of Contents
Example
Playback Groups - Create and Add
by: | Sebastian Beutel, June 2021 |
---|---|
published: | here |
description: | basic functionality: creating a playback group and adding some playbacks |
remarks: | with great support by Gregory Haynes |
Playback Groups were introduced with Titan v13, January 2020. This functionality is not available in earlier versions.
This example is meant to show how Playback Groups are created, how playbacks are added, how the various parameters are conveyed, and which caveats need to be taken care of. Particular attention should be paid to setting IEnureables.
functions
affected properties
control structures
Code
- PlaybackGroupsBasics.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="Wiki.Macros.PlaybackGroups.Test.AddPB12tonewPBG" name="Add Playbacks 1 and 2 to new PBG"> <sequence> <step>Handles.SetSourceHandleRange("Playbacks", {0, 1})</step> <step>PlaybackGroups.CreatePlaybackGroupWithPlaybacks("Test", Playbacks.FilterByPlaybackHandle(Handles.ContextHandles))</step> <step>Handles.ClearSelection()</step> </sequence> </macro> <!-- the new PBG is also current as in PlaybackGroups.CurrentPlaybackGroup --> <macro id="Wiki.Macros.PlaybackGroups.Test.AddCue3CL1tocurrPBG" name="Add Cue 3 CL 1 to curr PBG"> <sequence> <step>PlaybackGroups.AddPlaybacksToGroup(PlaybackGroups.CurrentPlaybackGroup, "{cueHandleUN=3,cueListHandleUN=1}")</step> </sequence> </macro> <macro id="Wiki.Macros.PlaybackGroups.Test.AddPB2tocurrPBG" name="Add PB 2 to curr PBG"> <sequence> <step>PlaybackGroups.AddPlaybacksToGroup(PlaybackGroups.CurrentPlaybackGroup, Playbacks.FilterByPlaybackHandle(userNumber:2))</step> </sequence> </macro> <macro id="Wiki.Macros.PlaybackGroups.Test.AddPB3toPBG1" name="Add PB 3 to PBG 1"> <sequence> <step>PlaybackGroups.AddPlaybacksToGroup(handle:"playbackGroupHandleUN=1", "cueHandleUN=3")</step> </sequence> </macro> <macro id="Wiki.Macros.PlaybackGroups.Test.AddCue3tocurrPBG2" name="Add Cue 3 to curr PBG 2"> <sequence> <step>PlaybackGroups.SetCurrentPlaybackGroupFromUserNumber(2)</step> <step>PlaybackGroups.AddPlaybacksToGroup(PlaybackGroups.CurrentPlaybackGroup, "cueHandleUN=3")</step> </sequence> </macro> <macro id="Wiki.Macros.PlaybackGroups.AddPBsByTitanId" name="Adding PBs to PBG by TitanID"> <description>No practical use as the TitanIDs are not really accessible</description> <sequence> <step>PlaybackGroups.AddPlaybacksToGroup(PlaybackGroups.CurrentPlaybackGroup, "{ 1812; 1999 }")</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
tbd
How to use it
You could leave a comment if you were logged in.
macros/example/playbackgroupcreateadd.1623515335.txt.gz · Last modified: 2021/06/12 16:28 (external edit)