macros:example:changepageswithtimecode
This is an old revision of the document!
Table of Contents
Example
Change Pages with Timecode
by: | Sebastian Beutel, July 2022 |
---|---|
published: | here |
description: | change playback pages if enabled (useful with timecode) |
remarks: | idea from Discord/Avolites Users#general: Antisthenes — 12.07.2022 triggering or macro question please Is there any way to auto switch the song playback page when corresponding timecode starts? |
functions
affected properties
control structures
Code
- ChangePages.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <!-- idea from Discord/Avolites Users#general: Antisthenes — 12.07.2022 triggering or macro question please raised_hand Is there any way to auto switch the song playback page when corresponding timecode starts? --> <macro id="Wiki.Macros.Timecode.TogglePages" name="Toggle Pb Pages By Timecode"> <description>Toggle Pb Pages By Timecode.</description> <variables> <boolean id="Enabled" value="True"/> </variables> <active binding="Wiki.Macros.Timecode.TogglePages.Enabled"/> <sequence> <step>ActionScript.SetProperty.Boolean("Wiki.Macros.Timecode.TogglePages.Enabled", !Wiki.Macros.Timecode.TogglePages.Enabled)</step> </sequence> </macro> <macro id="Wiki.Macros.Playbacks.Page1" name="Toggle Pb to Page 1"> <sequence> <step condition="Wiki.Macros.Timecode.TogglePages.Enabled">Handles.Playbacks.ChangePage(0)</step> </sequence> </macro> <macro id="Wiki.Macros.Playbacks.Page2" name="Toggle Pb to Page 2"> <sequence> <step condition="Wiki.Macros.Timecode.TogglePages.Enabled">Handles.Playbacks.ChangePage(1)</step> </sequence> </macro> </avolites.macros>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
tbd
How to use it
macros/example/changepageswithtimecode.1657888631.txt.gz · Last modified: 2022/07/15 12:37 (external edit)
Discussion
Bold Text
— Amarjeet Kumar jha 2023/10/16 17 * Unordered List ItemMasters - BPM Master (snippet):20