Example
====== Flash Playback-Groups ======
^ by: | Sebastian Beutel, July 2020 |
^ published: | here |
^ description: | flashes a playback and some playback groups |
^ remarks: | idea/request: Andreas Buhr, c/f show Tripod Trigger |
{{tag>flash playback group}}
==== functions ====
  * [[:macros:function:Playbacks.FlashPlayback]]
  * [[:macros:function:Group.FlashFader]]
  * [[:macros:function:Playbacks.ClearFlashPlayback]]
==== specials ====
  * [[:macros/syntax/start_end|]]
 
===== Code =====
  
    Flashes PB 5. flashes groups 17, 18, 19, 20
    
      Playbacks.FlashPlayback("cueHandleUN=5")
      Group.FlashFader(userNumber:17, true)
      Group.FlashFader(userNumber:18, true)
      Group.FlashFader(userNumber:19, true)
      Group.FlashFader(userNumber:20, true)
    
    
      Playbacks.ClearFlashPlayback("cueHandleUN=5")
      Group.FlashFader(userNumber:17, false)
      Group.FlashFader(userNumber:18, false)
      Group.FlashFader(userNumber:19, false)
      Group.FlashFader(userNumber:20, false)
    
  
===== 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 real interesting thing here is the double action per macro button:
  * the '''' section is performed when the button is pressed
    * ''Playbacks.FlashPlayback()'' flashes a particular playback (here identified by its user number)
    * ''Group.FlashFader(...,**true**)'' flashes a particular playback group's fader (also identified by its user number)
  * the '''' section is performed when the button is relesed (let go) 
    * ''Playbacks.ClearFlashPlayback()'' unflashes a particular previously flashed playback (here identified by its user number)
    * ''Group.FlashFader(...,**false**)'' unflashes a particular playback group's fader (also identified by its user number)
===== How to use it =====
  - [[:macros:deploying|make this macro available]]
This was created for a particular show which was triggered remotely, and thus required these flash/unflash actions.
~~DISCUSSION~~