copy macro by macroId
Moderator: Moderators
- sideshowbond
- Posts: 182
- Joined: 18 Nov 2016, 20:58
copy macro by macroId
is there a way to copy a macro from the show library onto a handle using the macro id?
-
- Posts: 1089
- Joined: 02 Jul 2010, 10:29
- Location: Siegen, Germany
- Contact:
Re: copy macro by macroId
Solution by Gregory:
For the background see http://www.avolites.de/wiki/macros:exam ... ymacrobyid.
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>
For the background see http://www.avolites.de/wiki/macros:exam ... ymacrobyid.
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.
Who is online
Users browsing this forum: No registered users and 31 guests