Table of Contents

Example

Legend - Get a cuelist cue's legend

by: Kim Wida, April 2018
published: http://forum.avolites.com/viewtopic.php?f=20&t=5662
description: Get Specific Cue Legend In A Cuelist
remarks: How can I get second or third cue's legend in the cuelist??
I am trying to make a macro which show currently running cue's legend to the cuelist legend.
For understanding. There is a cuelist which has “Colour” legend. It has 4 cues and each cue have “Red”, “Green”, “Blue” and “White” legend.
What I want is when I fire the cuelist, cuelist legend change “Colour” to “Red”. Then “Red” to “Green”… like this.

functions

affected properties

Code

<step pause="0.01">ConnectedPlayback.Connect(Handles.GetHandle("PlaybackWindow",0,76))</step>
<step pause="0.01">Handles.SetSourceHandleFromHandle(Handles.GetHandle("PlaybackWindow",0,76))</step>
<step pause="0.01">Playbacks.FillCueLegend(
                     Handles.GetHandle("PlaybackWindow",0,76), 
                     Math.Cast.ToSingle(CueLists.LiveCueNumber), 
                     "Handles.PendingLegend"
                     )</step>
<step pause="0.01">Handles.SetLegend()</step>
<step pause="0.01">Handles.ClearSelection()</step>

Explanation

If you didn't put cue legend of the cuelist, it will show default cuelist name.
You could use “CueLists.LiveCueNumber +1”, if you want to see next cue.

This is only a code snippet and not operational within itself. Listed here for documentation