Example ====== Chase - Change a chaser's XFade ====== ^ by: | Kim Wida, February 2018 | ^ published: | http://forum.avolites.com/viewtopic.php?f=20&t=5579 | ^ description: | snippet to show how the chaser XFade can be set and displayed on another legend | ^ remarks: | | {{tag>chase xfade legend}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty]] * [[:macros:function:Handles.SetSourceHandleFromHandle]] * [[:macros:function:handles.setlegend|]] * [[macros:function:handles.clearselection|]] ==== affected properties ==== * [[:macros:property:Playbacks.Editor.SelectedPlayback]] * [[:macros:property:Playbacks.Editor.Times.ChaseXFade]] * [[:macros:property:Handles.PendingLegend]] ===== Code ===== ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"chaseHandleUN=19159") ActionScript.SetProperty("Playbacks.Editor.Times.ChaseXFade", 0.2) ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"chaseHandleUN=19160") ActionScript.SetProperty("Playbacks.Editor.Times.ChaseXFade", 0.2) Handles.SetSourceHandleFromHandle("chaseHandleUN=1296") ActionScript.SetProperty("Handles.PendingLegend", "X-Fade 20%") Handles.SetLegend() 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]] * chase playbacks are selected based on their [[macros:identifier:usernumber]] * the value for the XFade setting is set * the same value is set as another chaser's legend ===== How to use it ===== Snippet only - copy and edit as you want, or download the example file at http://forum.avolites.com/viewtopic.php?f=20&t=5579. ~~DISCUSSION~~