Example ====== Playback - Record and set userNumber ====== ^ by: | question by Sebastian Beutel, solution: Gregory Haynes, June 2018 | ^ published: | http://forum.avolites.com/viewtopic.php?f=20&t=5783 | ^ description: | records a playback with a fixed [[macros:identifier:usernumber|]] | Snippet only, just for documentation. {{tag>record playback usernumber}} ==== functions ==== * [[:macros:function:Playbacks.StoreCue]] * [[:macros:function:Handles.SetSourceHandle]] * [[:macros:function:ActionScript.SetProperty]] * [[:macros:function:Handles.SetUserNumber]] * [[:macros:function:Handles.ClearSelection]] ==== affected properties ==== * [[:macros:property:Handles.CurrentUserNumber]] ===== Code ===== Playbacks.StoreCue("PlaybackWindow", 1000, false) Handles.SetSourceHandle("PlaybackWindow", 1000) ActionScript.SetProperty("Handles.CurrentUserNumber", userNumber:10000) Handles.SetUserNumber() Handles.ClearSelection() ===== 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 stores a playback and sets its usernumber. As mentioned in the forum this isn't possible in one go - hence, at first the playback is stored to a specific loaction, and then the handle in this location is set to a particular usernumber. ===== How to use it ===== Snippet only - to be used in a larger context. ~~DISCUSSION~~