User Tools

Site Tools


macros:example:setfangrouping

Example

Fan - Grouping

by: Alex del Bondio, January 2019
published: http://forum.avolites.com/viewtopic.php?f=20&t=5962#p21516
description: Macros to set the fan group options, to be put on buttons which also show the current selection
remarks:

functions

affected properties

specials

Code

FanGroups.xml
<?xml version="1.0" encoding="utf-8"?>
 
<avolites.macros>
 
  <macro id="adb.Macros.fan.ignoregroups" name="adb fan IgnoreGroups">
    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.GroupOptions' 
      converter='Math.EnumAsStringEqualityConverter' 
      converterParameter='IgnoreGroups'}"/>
    <sequence>
      <step>ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "IgnoreGroups")</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.fan.FanGroupAsFixture" name="adb fan FanGroupAsFixture">
    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.GroupOptions' 
      converter='Math.EnumAsStringEqualityConverter' 
      converterParameter='FanGroupAsFixture'}"/>
    <sequence>
      <step>ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "FanGroupAsFixture")</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.fan.FanWithinGroup" name="adb fan FanWithinGroup">
    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.GroupOptions' 
      converter='Math.EnumAsStringEqualityConverter' 
      converterParameter='FanWithinGroup'}"/>
    <sequence>
      <step>ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "FanWithinGroup")</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

Each macro sets the Fan Grouping property to a specific value. Additionally, each macro shows its selection state on its handle using Active Binding.

How to use it

You could leave a comment if you were logged in.
macros/example/setfangrouping.txt · Last modified: 2019/05/05 13:55 by icke_siegen