Example ====== Playback - Fire/Release Playbacks from Usernumber ====== ^ by: | Peter Budd | ^ published: | October 2017 | ^ description: | Fire/Release some Playbacks. | ^ remarks: | This is also an example of the use of [[macros:identifier:usernumber|userNumber]]. | {{tag>playback fire release usernumber}} ==== functions ==== * [[:macros:function:Playbacks.ReleasePlayback]] * [[:macros:function:Playbacks.FirePlaybackAtLevel]] ==== affected properties ==== * [[:macros:property:Playbacks.MasterReleaseTime]] ===== Code ===== Releases some playbacks. Playbacks.ReleasePlayback(userNumber:83, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:2, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:79, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:3, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:4, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:81, Playbacks.MasterReleaseTime, true) Playbacks.ReleasePlayback(userNumber:50, Playbacks.MasterReleaseTime, true) Fire Hold State. Playbacks.FirePlaybackAtLevel(userNumber:83, level:1, true) Releases hold state. Playbacks.ReleasePlayback(userNumber:83, Playbacks.MasterReleaseTime, true) ===== 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]] These macros are designed to work with specific usernumbers - either you adjust the usernumbers in the macro or you assign your playbacks the currect usernumbers. ''Playbacks.ReleasePlayback()'' releases a certain playback in a given time - which here is taken from the property ''Playbacks.MasterReleaseTime''. ''Playbacks.FirePlaybackAtLevel'' fires a certain playback at a certain level. Here, the playbacks are identifies by their [[macros:identifier:usernumber]]. Also note the syntax of defining the [[macros:type:object:leveladjust|level]]. ===== How to use it ===== - [[:macros:deploying|make this macro available]] - These macros are designed to work with specific usernumbers - either you adjust the usernumbers in the macro or you assign your playbacks the currect usernumbers. Another example see http://forum.avolites.com/viewtopic.php?f=20&t=5784: Playbacks.ReleasePlayback(userNumber: 1, 0, false) Playbacks.ReleasePlayback(userNumber: 2, 0, false) Playbacks.ReleasePlayback(userNumber: 3, 0, false) Playbacks.ReleasePlayback(userNumber: 4, 0, false) Playbacks.FirePlaybackAtLevel(userNumber: 1, 1, true) ~~DISCUSSION~~