Change Legend of Cue in a Chase

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
kimwida
Posts: 250
Joined: 05 Aug 2016, 16:26
Location: Seoul

Change Legend of Cue in a Chase

Postby kimwida » 14 Feb 2018, 18:21

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!!

Who is online

Users browsing this forum: No registered users and 9 guests