User Tools

Site Tools


macros:example:setfanparts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
macros:example:setfanparts [2019/04/12 12:05]
sideshowbond [Set Fan Parts]
macros:example:setfanparts [2019/05/05 14:00] (current)
icke_siegen
Line 12: Line 12:
 ==== functions ==== ==== functions ====
   * [[:​macros:​function:​ActionScript.SetProperty]]   * [[:​macros:​function:​ActionScript.SetProperty]]
 +  * [[:​macros:​function:​Math.EnumAsStringEqualityConverter]]
  
 ==== affected properties ==== ==== affected properties ====
   * [[:​macros:​property:​Programmer.Editor.Fixtures.Fan.SegmentCount]]   * [[:​macros:​property:​Programmer.Editor.Fixtures.Fan.SegmentCount]]
  
-==== control structures ​====+==== specials ​====
   * [[macros:​active_binding|]]   * [[macros:​active_binding|]]
-  * [[Math.EnumAsStringEqualityConverter]] 
    
 ===== Code ===== ===== Code =====
-<code xml FanParts.xml>+<code xml setfanparts.xml>
 <?xml version="​1.0"​ encoding="​utf-8"?>​ <?xml version="​1.0"​ encoding="​utf-8"?>​
-<​avolites.macros ​xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance"​ xsi:​noNamespaceSchemaLocation="​Avolites.Menus.xsd"​>+<​avolites.macros>​
  
-  <macro id="adb.Macros.fan.1part" name="adb fan 1part">​ +  <macro id="​Macros.FanParts.1" name="Set Fan In 1 Part">​ 
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount'​  +      converter='​Math.EnumAsStringEqualityConverter'​ 
-      converter='​Math.EnumAsStringEqualityConverter'​ converterParameter='​1'​ +      ​converterParameter='​1'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​1)</​step>​       <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​1)</​step>​
Line 35: Line 34:
   </​macro>​   </​macro>​
   ​   ​
-  <macro id="adb.Macros.fan.2part" name="adb fan 2part">​ +  <macro id="​Macros.FanParts.2" name="Set Fan In 2 Part">​ 
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount'​  +      converter='​Math.EnumAsStringEqualityConverter'​ 
-      converter='​Math.EnumAsStringEqualityConverter'​ converterParameter='​2'​ +      ​converterParameter='​2'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​2)</​step>​       <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​2)</​step>​
-    </​sequence>​ 
-  </​macro>​ 
-  ​ 
-  <macro id="​adb.Macros.fan.3part"​ name="​adb fan 3part">​ 
-    <active binding="​{ 
-      propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount' ​ 
-      converter='​Math.EnumAsStringEqualityConverter'​ converterParameter='​3'​ 
-    }"/>​ 
-    <​sequence>​ 
-      <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​3)</​step>​ 
-    </​sequence>​ 
-  </​macro>​ 
-  ​ 
-  <macro id="​adb.Macros.fan.4part"​ name="​adb fan 4part">​ 
-    <active binding="​{ 
-      propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount' ​ 
-      converter='​Math.EnumAsStringEqualityConverter'​ converterParameter='​4'​ 
-    }"/>​ 
-    <​sequence>​ 
-      <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​4)</​step>​ 
-    </​sequence>​ 
-  </​macro>​ 
-  ​ 
-  <macro id="​adb.Macros.fan.6part"​ name="​adb fan 6part">​ 
-    <active binding="​{ 
-      propertyLink id='​Programmer.Editor.Fixtures.Fan.SegmentCount' ​ 
-      converter='​Math.EnumAsStringEqualityConverter'​ converterParameter='​6'​ 
-    }"/>​ 
-    <​sequence>​ 
-      <​step>​ActionScript.SetProperty("​Programmer.Editor.Fixtures.Fan.SegmentCount",​6)</​step>​ 
     </​sequence>​     </​sequence>​
   </​macro>​   </​macro>​
macros/example/setfanparts.1555063511.txt.gz · Last modified: 2019/04/12 12:05 by sideshowbond