Example
by: | Gregory Haynes, May 2016 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=4517 |
description: | Toggle whether the cue list on handle 1 of the current page is enabled for timecode. |
remarks: | The original idea was to toggle a cuelist which is identified by its legend - but that's not possible. Greg writes 'I don't think there is a way to do this at the moment. I found a way of toggling a playback based on its location but it uses the current page, you could use the Playbacks window instead (which would be “PlaybackWindow”).' |
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="UserMacro.TogglePlaybackTimecode"> <name>Toggle Timecode Enabled</name> <description>Toggle whether the cue list on handle 1 of the current page is enabled for timecode.</description> <sequence> <step>Handles.SetSourceHandle("Playbacks", 0)</step> <step>Playbacks.Timecode.ToggleEnabled.Handle(Handles.SourceHandle)</step> <step>Handles.SetSourceHandleFromHandle(null)</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
Handles.SetSourceHandle(“Playbacks”, 0)
makes the playback 1 the source handlePlaybacks.Timecode.ToggleEnabled.Handle(Handles.SourceHandle)
toggles the Timecode.Enabled setting of this handle - this is the 'Connected Cuelists' toggle button in the Timecode menuHandles.SetSourceHandleFromHandle(null)
empties the source handle property.[Timecode]
menu[Connected Cue Lists]
- the button [Cue List Playbacks[1]]
is inactive[Connected Cue Lists]
- the button [Cue List Playbacks[1]]
is now active