Example ====== Playback - Set fade mode ====== ^ by: | Kimwida, Gregory Haynes, Apr. 2017 | ^ published: | http://forum.avolites.com/viewtopic.php?f=20&t=5151 | ^ description: | change a particular playback's fade mode | ^ remarks: | This is not a working macro. However, the discussion gives some good examples and insights. | {{tag>handle playback fademode}} ==== functions ==== * [[macros:function:actionscript.setproperty]] * [[macros:function:actionscript.setproperty.enum]] ==== affected properties ==== * [[macros:property:handles.sourcehandle]] * [[macros:property:playbacks.editor.selectedplayback]] * [[macros:property:playbacks.editor.times.cuemode]] ===== Original Discussion ===== Post by Gregory ยป 29 Apr 2017, 21:24 The first and third steps do not look right or are unnecessary: Handles.SourceHandle is the item selected in operations such as Delete and Set Legend, you are setting this in the first step. Playbacks.Editor.SelectedPlayback is playback in use by the Edit Times menu, you are setting this in the third step even though it won't have changed. ===== Code ===== ActionScript.SetProperty("Handles.SourceHandle", Playbacks.Editor.SelectedPlayback) ActionScript.SetProperty.Enum("Playbacks.Editor.Times.CueMode", "Mode1") ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Handles.SourceHandle) ===== 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]] It is believed that the 1st and third step are unnecessary, see Gregory's porst above. It looks like these steps are copied from exampes like [[macros:example:doublechasespeed]] where it is required to store and restore the selected playback - which is not the case here. ''ActionScript.SetProperty.Enum("Playbacks.Editor.Times.CueMode", "Mode1")'' simply sets the fader mode of the playback which is currently in the editor to Mode1. ===== How to use it ===== Put this snippet into a proper macro file and [[macros:deploying|make this macro available]]. \\ With a cue programmed, now you can , instead of going to Edit Times, or Playback View/Options, or Playback Options/Playback, simply fire this macro to set the cue to Fader Mode 1 == Timed Fade In & Out. //Tested in 10.1 - seems to work as intended [S. Beutel]// ~~DISCUSSION~~