User Tools

Site Tools



Pages - Toggle to page 1 and back

by: Sebastian Beutel, February 2019
published: here
description: toggle to playback page 1, and back again
remarks: idea see


affected properties

control structures


<?xml version="1.0" encoding="utf-8"?>
<!-- idea see -->
<!-- Sebastian Beutel, February 2019 -->
<macro id="Macros.TogglePlaybackPage" name="Toggle PB Page 1 and back">
    <step> {
      if(UserMacros.CurrentUserNumber == 1000) {
        ActionScript.SetProperty("UserMacros.CurrentUserNumber", Handles.Playbacks.Page.Index);
      } else {
        if (Handles.Playbacks.Page.Index == 0){
        ActionScript.SetProperty("UserMacros.CurrentUserNumber", 1000);


This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

This macro abuses the property UserMacros.CurrentUserNumber as temporary cache for the current playback page number.

  • if the macro is called and UserMacros.CurrentUserNumber is 1000 then UserMacros.CurrentUserNumber is set to the current playback page, and playbacks are toggled to page 1
  • if the macro is called and UserMacros.CurrentUserNumber is NOT 1000 then playbacks are toggled to what is cached in UserMacros.CurrentUserNumber, and UserMacros.CurrentUserNumber is then set to 1000

Side effects:

  • in a new show, UserMacros.CurrentUserNumber defaults to 1. At first you have to call the macro twice.
  • if you change the playback page manually after having toggled to page 1 then you have to call the macro twice.
  • this interferes with the Macro Usernumber - be aware of this when programming or calling other macros

How to use it

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