copy macro by macroId
Posted: 21 Jun 2018, 00:45
is there a way to copy a macro from the show library onto a handle using the macro id?
Code: Select all
<step>Playbacks.Editor.Macros.SetTargetHandle("Avolites.Macros.SnapForward")</step>
<step>ActionScript.SetProperty.Enum("Handles.OperationMode", "move")</step>
<step>Handles.SetSourceHandleFromHandle(Playbacks.Editor.Macros.Target.Handle)</step>
<step>Handles.CopyDestination("Fixtures", 0)</step>
Gregory wrote:The SetTargetHandle call uses the macro ID string to get the handle associated with the macro (even if it is an unassigned factory macro) and assigns that handle to the Playbacks.Editor.Macros.Target.Handle property. This property can then be passed into any other function that requires a handle such as the SetSourceHandleFromHandle function.