Table of Contents

Example

Timecode - Enable/Disable

by: Gregory Haynes, Mar. 2016
published: http://forum.avolites.com/viewtopic.php?f=20&t=4416
description: Enable/disable/toggle timecode input
remarks: These macros are now factory default macros, and are shown here for documentation.

functions

affected properties

Code

TimecodeMacros.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Avolites.Macros.Timecode.Enable" name="Enable Timecode">
	<description>Enable Timecode timer.</description>
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Timecode.Enabled", true)</step>
      <step>Timecode.SetEnabled(Timecode.Enabled)</step>
    </sequence>
  </macro>
  <macro id="Avolites.Macros.Timecode.Disable" name="Disable Timecode">
	<description>Disable Timecode timer.</description>
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Timecode.Enabled", false)</step>
      <step>Timecode.SetEnabled(Timecode.Enabled)</step>
    </sequence>
  </macro>
  <macro id="Avolites.Macros.Timecode.Toggle" name="Toggle Timecode">
	<description>Toggle Timecode timer.</description>
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Timecode.Enabled", !Timecode.Enabled)</step>
      <step>Timecode.SetEnabled(Timecode.Enabled)</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

These macros are a good example for keeping the programming core and the menu in sync - this is explained in Action and Menus.

How to use it

See Deploying macros.
Fire any of the macros if you want to enable/disable/toggle the macro timer.