Page 1 of 1

Change Legend of Cue in a Chase

Posted: 14 Feb 2018, 18:21
by kimwida

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="TestSetLegend" name="TestSetLegend">
    <sequence>
   <step pause="0.01">Playbacks.SetCueLegend(handle:"chaseHandleUN=10555", 1, "Test")</step>
    </sequence>
  </macro>
</avolites.macros>


1) Make a two step chase.
2) Remember the chase's user number. i.g) 10555 in my case
3) Put return value instead of "Test".
4) Fire this macro.
5) You can see the return value in the chase's first cue legend. In this code, it change to "Test".

===================================================================================
If the return value is int, I don't know how to convert int to string.

===================================================================================
I used "Math.Cast.ToString" to convert Int to String. But it doesn't work with return value. I don't know why.

Code: Select all

Playbacks.SetCueLegend(handle:"chaseHandleUN=10555", 1, Math.Cast.ToString(Profiles.GetHandleProfileId(handle:"chaseHandleUN=10555")))


===================================================================================
Use "Math.ToString" Not "Math.Cast.ToString".
Now it works.
Thanks Sebastian!!