User Tools

Site Tools


macros:example:getcuelistcuelegend

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

  • ConnectedPlayback.Connect connects to a specific playback
  • Handles.SetSourceHandleFromHandle selects this playback to set its legend
  • Playbacks.FillCueLegend gets a specific cue's legnd and feeds this into the property 'PendingLegend' to set it in the next step
  • Handles.SetLegend sets the cuelist's legend to the current cue's legend
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

You could leave a comment if you were logged in.
macros/example/getcuelistcuelegend.txt · Last modified: 2019/04/27 11:28 by sideshowbond

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki