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 revisionPrevious revision
Next revision
Previous revision
macros:example:setfanparts [2019/04/27 15:01] – [Code] sideshowbondmacros:example:setfanparts [2019/05/05 12: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> +<code xml setfanparts.xml
-Fan 1 part +<?xml version="1.0" encoding="utf-8"?> 
-    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount' converter='Math.EnumAsStringEqualityConverter'converterParameter='1'}"/>+<avolites.macros> 
 + 
 +  <macro id="Macros.FanParts.1" name="Set Fan In Part"> 
 +    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount'  
 +      converter='Math.EnumAsStringEqualityConverter' 
 +      converterParameter='1'}"/>
     <sequence>     <sequence>
       <step>ActionScript.SetProperty("Programmer.Editor.Fixtures.Fan.SegmentCount",1)</step>       <step>ActionScript.SetProperty("Programmer.Editor.Fixtures.Fan.SegmentCount",1)</step>
     </sequence>     </sequence>
- +  </macro> 
-Fan 2 part +   
-    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount' converter='Math.EnumAsStringEqualityConverter' converterParameter='2'}"/>+  <macro id="Macros.FanParts.2" name="Set Fan In Part"> 
 +    <active binding="{propertyLink id='Programmer.Editor.Fixtures.Fan.SegmentCount'  
 +      converter='Math.EnumAsStringEqualityConverter' 
 +      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>     </sequence>
 +  </macro> 
 +   
 +</avolites.macros>
 </code> </code>
  
macros/example/setfanparts.1556377316.txt.gz · Last modified: 2019/04/27 15:01 by sideshowbond

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki