Example
by: | Menno Appelhof, Aug. 2016 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=4775 |
description: | Macros to change all playback pages on main sections, static playbacks and the wings. |
remarks: | Code below is shortened for better overview. Find full version (for all pages) at the original post. |
Code below is shortened for better overview. Find full version (for all pages) at the original post.
<?xml version="1.0" encoding="utf-8"?> <avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd" > <!--Macros to change all playback pages on main sections, static playbacks and the wings. August 2016 Menno Appelhof menno@fairlight.nl --> <macro name="Playbacks Page 1" id="Avolites.Macros.ChangeToPage1"> <description>Changes all pages to page 1.</description> <sequence> <step>Handles.Playbacks.ChangePage(0)</step> <step>Handles.StaticPlaybacks.ChangePage(0)</step> <step>Handles.MobileWingAPlaybacks.ChangePage(0)</step> <step>Handles.MobileWingAExecutor.ChangePage(0)</step> <step>Handles.SapphireWingATop.ChangePage(0)</step> <step>Handles.SapphireWingABottom.ChangePage(0)</step> <step>Handles.SapphireWingBTop.ChangePage(0)</step> <step>Handles.SapphireWingBBottom.ChangePage(0)</step> </sequence> </macro> <!-- add macros for pages 2~59 here --> <macro name="Playbacks Page 60" id="Avolites.Macros.ChangeToPage60"> <description>Changes all pages to page 60.</description> <sequence> <step>Handles.Playbacks.ChangePage(59)</step> <step>Handles.StaticPlaybacks.ChangePage(59)</step> <step>Handles.MobileWingAPlaybacks.ChangePage(59)</step> <step>Handles.MobileWingAExecutor.ChangePage(59)</step> <step>Handles.SapphireWingATop.ChangePage(59)</step> <step>Handles.SapphireWingABottom.ChangePage(59)</step> <step>Handles.SapphireWingBTop.ChangePage(59)</step> <step>Handles.SapphireWingBBottom.ChangePage(59)</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
Each macro changes all hardware handles to a particular page by calling the respective ChangePage() function. Please note that the page number is a 0-based index.
Handle Paging Locked
in playback options.