Example ====== Fan - Curve ====== ^ by: | Gregory Haynes, January 2019 | ^ published: | http://forum.avolites.com/viewtopic.php?f=20&t=5962 | ^ description: | Macros to set the fan curve. May be put in buttons for easy access. Buttons will show the currently selected curve. | ^ remarks: | | {{tag>fan curve active binding converter}} ==== functions ==== * [[:macros:function:Programmer.Editor.Fixtures.Fan.SelectCurve]] * [[:macros:function:Math.EqualityConverter]] ==== affected properties ==== * [[:macros:property:Programmer.Editor.Fixtures.Fan.SelectedFanCurveId]] ==== specials ==== * [[macros:active_binding|]] ===== Code ===== Set the current fan curve to Line. Programmer.Editor.Fixtures.Fan.SelectCurve("Line") Set the current fan curve to Mirror. Programmer.Editor.Fixtures.Fan.SelectCurve("Mirror") Set the current fan curve to Wings. Programmer.Editor.Fixtures.Fan.SelectCurve("Wings") Set the current fan curve to Pull Middle. Programmer.Editor.Fixtures.Fan.SelectCurve("Pull Middle") Set the current fan curve to Pull Ends. Programmer.Editor.Fixtures.Fan.SelectCurve("Pull Ends") Set the current fan curve to Pull End. Programmer.Editor.Fixtures.Fan.SelectCurve("Pull End") ===== Explanation ===== This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] The macros simply set the fan curve to a specific value. Each macro can be put on a button. Using [[macros:active_binding|]] the button is highlighted if the curve is currently selected. ===== How to use it ===== * [[:macros:deploying|make this macro available]] * copy the macros on available buttons to quickly change the fan curve. ~~DISCUSSION~~