macros:example:repatchselectedfixtures
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
- Patch.CurrentDmxAssignment (set inherently)
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
Programmer.Editor.Selection.GetSelectedHandles(“Windows.PatchView.Handles”)
andHandles.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()
andProgrammer.Editor.ClearAll(false, false)
nullify the current selection
How to use it
- you may alter the target address (
42.1
) to your liking - if you need to quickly repatch some fixtures, select them and fire this macro
You could leave a comment if you were logged in.
macros/example/repatchselectedfixtures.txt · Last modified: 2025/04/29 10:05 by icke_siegen