User Tools

Site Tools


macros:example:repatchselectedfixtures

This is an old revision of the document!


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

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/repatchselectedfixtures.1745908201.txt.gz · Last modified: 2025/04/29 06:30 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki