User Tools

Site Tools


macros:example:setfanparts

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:setfanparts [2019/03/09 20:23] – created icke_siegenmacros:example:setfanparts [2019/05/05 12:00] (current) icke_siegen
Line 1: Line 1:
 Example Example
  
-====== Set Fan Parts ======+====== Fan Parts ======
  
 ^ by: | Alex del Bondio, January 2019 | ^ by: | Alex del Bondio, January 2019 |
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.1552162996.txt.gz · Last modified: 2019/03/09 20:23 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki