Example ====== Trigger - Toggle Audio Triggers On/Off ====== ^ by: | Sebastian Beutel | ^ published: | Januar 2018 | ^ description: | Toggle Audio Triggers On/Off | ^ remarks: | based on [[macros:example:timecodeonoff|]] | ^ ::: | idea: https://www.facebook.com/groups/AvolitesTitanOne/permalink/1221271414675655/ | {{tag>audio trigger toggle}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty.Boolean]] ==== affected properties ==== * [[:macros:property:Audio.AudioTriggersEnabled]] ===== Code ===== Enable Audio Trigger. ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", true) Disable Audio Trigger. ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", false) Toggle Audio Trigger. ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", !Audio.AudioTriggersEnabled) ===== 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]] This sets the property ''AudioTriggersEnabled'' to true or false, thus enabling/disabling the audio triggers. ===== How to use it ===== * [[:macros:deploying|make this macro available]] * copy the macros to buttons and use them to enable/disable Audio Triggers ~~DISCUSSION~~