Table of Contents

Example

Programmer - Direction

by: Alex del Bondio
published: January 2019
description: Changes programmer direction
remarks:

adb_programmerdirection.xml

This selection of macros lets you change the programmer direction to be used with fixture overlap. These macros have Active Binding set so they will highlight when the corresponding attribute is set.

The code below is a snippet of the whole file which contains macros for all available directions.

functions

affected properties

Code

direction.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
 
<!-- Directions: None, LeftToRight, TopDown, HorizontalBlinds, 
                 RightToLeft, BottomUp, VerticalBlinds, TopLeftIn, 
                 TopRightIn, RadialMiddle, BottomLeftIn, BottomRightIn, 
                 BottomMiddleUpRadial, EndsInLinear, Random -->
 
  <macro id="adb.Macros.direct.LeftToRight" name="Direction LeftToRight">
    <active binding="{propertyLink id='Selection.Context.Global.Direction' 
      converter='Math.EnumAsStringEqualityConverter' 
      converterParameter='LeftToRight'}"/>
    <sequence>
      <step>ActionScript.SetProperty.Enum("Selection.Context.Global.Direction", "LeftToRight")</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.direct.RightToLeft" name="Direction RightToLeft">
    <active binding="{propertyLink id='Selection.Context.Global.Direction' 
      converter='Math.EnumAsStringEqualityConverter' 
      converterParameter='RightToLeft'}"/>
    <sequence>
      <step>ActionScript.SetProperty.Enum("Selection.Context.Global.Direction", "RightToLeft")</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

How to use it