User Tools

Site Tools


macros:example:setfancurve

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:setfancurve [2019/03/09 20:52]
icke_siegen created
macros:example:setfancurve [2019/05/05 13:52] (current)
icke_siegen
Line 1: Line 1:
 Example Example
  
-====== ​Set Fan Curve ======+====== Fan Curve ======
  
 ^ by: | Gregory Haynes, January 2019 | ^ by: | Gregory Haynes, January 2019 |
Line 12: Line 12:
 ==== functions ==== ==== functions ====
   * [[:​macros:​function:​Programmer.Editor.Fixtures.Fan.SelectCurve]]   * [[:​macros:​function:​Programmer.Editor.Fixtures.Fan.SelectCurve]]
 +  * [[:​macros:​function:​Math.EqualityConverter]]
  
 ==== affected properties ==== ==== affected properties ====
   * [[:​macros:​property:​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId]]   * [[:​macros:​property:​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId]]
  
-==== control structures ​====+==== specials ​====
   * [[macros:​active_binding|]]   * [[macros:​active_binding|]]
-  * [[Math.EqualityConverter]] 
    
 ===== Code ===== ===== Code =====
Line 27: Line 27:
   <macro id="​Avolites.Macros.FanCurve.Line"​ name="​Fan Curve Line">​   <macro id="​Avolites.Macros.FanCurve.Line"​ name="​Fan Curve Line">​
     <​description>​Set the current fan curve to Line.</​description>​     <​description>​Set the current fan curve to Line.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Line'​ +      ​converterParameter='​Line'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Line"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Line"​)</​step>​
Line 38: Line 37:
   <macro id="​Avolites.Macros.FanCurve.Mirror"​ name="​Fan Curve Mirror">​   <macro id="​Avolites.Macros.FanCurve.Mirror"​ name="​Fan Curve Mirror">​
     <​description>​Set the current fan curve to Mirror.</​description>​     <​description>​Set the current fan curve to Mirror.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Mirror'​ +      ​converterParameter='​Mirror'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Mirror"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Mirror"​)</​step>​
Line 49: Line 47:
   <macro id="​Avolites.Macros.FanCurve.Wings"​ name="​Fan Curve Wings">​   <macro id="​Avolites.Macros.FanCurve.Wings"​ name="​Fan Curve Wings">​
     <​description>​Set the current fan curve to Wings.</​description>​     <​description>​Set the current fan curve to Wings.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Wings'​ +      ​converterParameter='​Wings'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Wings"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Wings"​)</​step>​
Line 60: Line 57:
   <macro id="​Avolites.Macros.FanCurve.PullMiddle"​ name="​Fan Curve Pull Middle">​   <macro id="​Avolites.Macros.FanCurve.PullMiddle"​ name="​Fan Curve Pull Middle">​
     <​description>​Set the current fan curve to Pull Middle.</​description>​     <​description>​Set the current fan curve to Pull Middle.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Pull Middle'​ +      ​converterParameter='​Pull Middle'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull Middle"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull Middle"​)</​step>​
Line 71: Line 67:
   <macro id="​Avolites.Macros.FanCurve.PullEnds"​ name="​Fan Curve Pull Ends">​   <macro id="​Avolites.Macros.FanCurve.PullEnds"​ name="​Fan Curve Pull Ends">​
     <​description>​Set the current fan curve to Pull Ends.</​description>​     <​description>​Set the current fan curve to Pull Ends.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Pull Ends' +      ​converterParameter='​Pull Ends'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull Ends"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull Ends"​)</​step>​
Line 82: Line 77:
   <macro id="​Avolites.Macros.FanCurve.PullEnd"​ name="​Fan Curve Pull End">​   <macro id="​Avolites.Macros.FanCurve.PullEnd"​ name="​Fan Curve Pull End">​
     <​description>​Set the current fan curve to Pull End.</​description>​     <​description>​Set the current fan curve to Pull End.</​description>​
-    <active binding="​{ +    <active binding="​{propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  
-      ​propertyLink id='​Programmer.Editor.Fixtures.Fan.SelectedFanCurveId'​  +      converter='​Math.EqualityConverter' ​ 
-      converter='​Math.EqualityConverter'​ converterParameter='​Pull End' +      ​converterParameter='​Pull End'​}"/>​
-    ​}"/>​+
     <​sequence>​     <​sequence>​
       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull End"​)</​step>​       <​step>​Programmer.Editor.Fixtures.Fan.SelectCurve("​Pull End"​)</​step>​
macros/example/setfancurve.1552161173.txt.gz · Last modified: 2019/03/09 20:52 by icke_siegen