Example ====== Fan - Grouping ====== ^ by: | Alex del Bondio, January 2019 | ^ published: | http://forum.avolites.com/viewtopic.php?f=20&t=5962#p21516 | ^ description: | Macros to set the fan group options, to be put on buttons which also show the current selection | ^ remarks: | | {{tag>fan group active binding converter}} ==== functions ==== * [[macros:function:actionscript.setproperty.enum|]] * [[macros:function:Math.EnumAsStringEqualityConverter]] ==== affected properties ==== * [[:macros:property:Programmer.Editor.Fixtures.Fan.GroupOptions]] ==== specials ==== * [[macros:active_binding|]] ===== Code ===== ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "IgnoreGroups") ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "FanGroupAsFixture") ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.Fan.GroupOptions", "FanWithinGroup") ===== 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]] Each macro sets the Fan Grouping property to a specific value. Additionally, each macro shows its selection state on its handle using [[macros:active_binding|]]. ===== How to use it ===== * [[:macros:deploying|make this macro available]] * copy the macros to buttons in order to quickly set the fan grouping ~~DISCUSSION~~