User Tools

Site Tools


macros:example:setfanparts

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

You could leave a comment if you were logged in.
macros/example/setfanparts.txt · Last modified: 2019/05/05 12:00 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki