Example ====== Set Wheel Mode ====== ^ by: | Sebastian Beutel, July 2021 | ^ published: | here | ^ description: | macros to directly set the wheel mode (level/fade/delay/visualiser) | ^ remarks: | idea: Ntokozo Mandla Mahlangu, see https://www.facebook.com/groups/Avolites/posts/2257625777702977/ | {{tag>wheels wheelmode visualiser}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty.Enum]] ==== affected properties ==== * [[:macros:property:Programmer.Editor.Fixtures.WheelsControlAttribute]] ==== control structures ==== * [[macros:active_binding|]] * [[macros:converter:Math.EnumAsStringEqualityConverter|]] ===== Code ===== ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.WheelsControlAttribute","Level") ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.WheelsControlAttribute","Fade") ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.WheelsControlAttribute","Delay") ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.WheelsControlAttribute","Visualiser") ===== 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 main thing is just the line ''ActionScript.SetProperty.Enum("Programmer.Editor.Fixtures.WheelsControlAttribute","...")'' which sets Titan's property to the value you want (here: Level, Fade, Delay, or Visualiser). Additionally the [[macros:active_binding|]] part is used to highlight the currently selected option for better overview. ===== How to use it ===== - [[:macros:deploying|make this macro available]] - copy the macros to some easy-to-reach buttons. This makes it easier to toggle between visualiser and level, instead of repeatedly pressing the menu button. ~~DISCUSSION~~