macros:example:programmerdirection
Table of Contents
Example
Programmer - Direction
by: | Alex del Bondio |
---|---|
published: | January 2019 |
description: | Changes programmer direction |
remarks: |
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
Selection.Context.Global.Direction
is the property regarding the direction and needs to be set viaActionScript.SetProperty.Enum
active binding
is used to highlight a macro when the corresponding property (propertyLink id
) matches theconverterParameter
. A good starting point to understand active binding is either this wiki or this post in the Avo forum http://forum.avolites.com/viewtopic.php?f=20&t=5962
How to use it
You could leave a comment if you were logged in.
macros/example/programmerdirection.txt · Last modified: 2019/05/05 11:59 by 127.0.0.1