User Tools

Site Tools


macros:example:copymacrobyid

This is an old revision of the document!


Example

Copy Macro by MacroId

by: Gregory Haynes, August 2018
published: ./.
description: copy a macro, identifying it by its macroId.
remarks: Best used together with setup/initialize macros, e.g. Create Workspaces

Original idea/request by Alex del Bondio, see http://forum.avolites.com/viewtopic.php?f=20&t=5780.

The main problem when attempting to copy items from the show library is that imported items don't have a dedicated handle - the items from an imported show are displayed dynamically. Hence a way needs to be found how to address an item by other means - in the case of macros: their Id.

functions

affected properties

control structures

  • anyspecials?

Code

copyMacroById.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 <macro id="Avolites.Macros.CopyMacroById" name="Copy Macro Snap to Fixtures #1">
    <description></description>
    <sequence>
      <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>
     </sequence>
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/copymacrobyid.1536482773.txt.gz · Last modified: 2018/09/09 08:46 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki