Example
by: | Sebastian Beutel, help by Gregory Haynes |
---|---|
published: | here - April 2025 |
description: | repatch selected fixtures to another DMX address |
remarks: | idea by Daniel Dai |
<?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>
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Programmer.Editor.Selection.GetSelectedHandles(“Windows.PatchView.Handles”)
and Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)
make sure the repatch is performed with the currently selected fixturesPatch.Repatch.SetDmxAddressesFromSelectedFixture()
sets the current properties (DMX line and channel)Patch.SetCurrentDmxAssignment(42.1)
defines the new address (e.g. the first address where the fixtures are supposed to be repatched to)ActionScript.SetProperty.Enum(“Patch.Repatch.BunchUp”, “BunchUp”)
sets the repatch modePatch.Repatch.RepatchSelectedFixtures(true)
performs the actual repatch, 'true' enforces to park conflicting fixturesHandles.ClearSelection()
and Programmer.Editor.ClearAll(false, false)
nullify the current selection42.1
) to your liking