Table of Contents

Example

Fan - Parts

by: Alex del Bondio, January 2019
published: http://forum.avolites.com/viewtopic.php?f=20&t=5962#p21516
description: Set fan parts to various values
remarks:

functions

affected properties

specials

Code

setfanparts.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
  <macro id="Macros.FanParts.1" name="Set Fan In 1 Part">
    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount' 
      converter='Math.EnumAsStringEqualityConverter'
      converterParameter='1'}"/>
    <sequence>
      <step>ActionScript.SetProperty("Programmer.Editor.Fixtures.Fan.SegmentCount",1)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.FanParts.2" name="Set Fan In 2 Part">
    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount' 
      converter='Math.EnumAsStringEqualityConverter'
      converterParameter='2'}"/>
    <sequence>
      <step>ActionScript.SetProperty("Programmer.Editor.Fixtures.Fan.SegmentCount",2)</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

The macros set the fan parts to various values. They also show the current value using Active Binding

How to use it