Table of Contents

Example

Patch - Repatch Selected Fixtures

by: Sebastian Beutel, help by Gregory Haynes
published: here - April 2025
description: repatch selected fixtures to another DMX address
remarks: idea by Daniel Dai

functions

affected properties

Code

RepatchSelectedFixtures.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
<!-- repatches all selected fixtures to line 42 channel 1 onwards -->
 
  <macro id="Avolites.Macros.Repatch.Universe42" name="Repatch to Universe 42">
    <sequence>
      <step>Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step>
      <step>Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)</step>
      <step>Patch.Repatch.SetDmxAddressesFromSelectedFixture()</step>
      <step>Patch.SetCurrentDmxAssignment(42.1)</step>
      <step>ActionScript.SetProperty.Enum("Patch.Repatch.BunchUp", "BunchUp")</step>
      <step>Patch.Repatch.RepatchSelectedFixtures(true)</step>
      <step>Handles.ClearSelection()</step>
      <step>Programmer.Editor.ClearAll(false, false)</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

How to use it

  1. you may alter the target address (42.1) to your liking
  2. if you need to quickly repatch some fixtures, select them and fire this macro