Page 1 of 1
					
				Park patched fixtures macro
				Posted: 11 Aug 2019, 18:21
				by Michaelg124
				Hey,
I am touring with a show witch uses a lot of house dimmers. 
Every time i am in a new venue i have to unpatch and repatch a lot of dimmers. 
I have tried to make a macro to unpatch all my dimmer so i only have to patch the correct adresses. 
I tried the following:
<Record macro>
<Patch>
<Patch view>
Select all my dimmers
<0>
<enter>
<End macro>
But it doesnt work..
Any ideas?
Thanks,
Michael
			 
			
					
				Re: Park patched fixtures macro
				Posted: 11 Aug 2019, 21:27
				by sideshowbond
				I tried to code a macor for that at some point and have gotten nowhere. Maybe if Greg reads this he might have an idea on how to solve this.
			 
			
					
				Re: Park patched fixtures macro
				Posted: 14 Aug 2019, 20:59
				by Gregory
				Sebastian asked me about a macro to park the currently selected fixtures and this is what I came up with:
Code: Select all
<macro id="Avolites.Macros.ParkSelectedFixtures" name="Park Selected Fixtures">
  <description>Parks the currently selected fixtures.</description>
  <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.Repatch.ParkSelectedFixtures()</step>
    <step>Handles.ClearSelection()</step>
  </sequence>
</macro>If you knew that your dimmers would always be in a particular user number range you could select them first by syntax: 
 If you wanted to code this into a macro you could do: 
Code: Select all
Command.RunCommand("101 THRO 199") 
			 
			
					
				Re: Park patched fixtures macro
				Posted: 15 Aug 2019, 07:09
				by icke_siegen
				Thanks Gregory - you are awesome  
 Michael, you can also recall the group of fixtures - and if you know that the group of dimmers you frequently want to park (or maybe the group All Dimmers) has e.g. UserNumber 100 then a line like 
Code: Select all
 <step>Group.RecallGroupNumeric(100)</step> would select exactly this.
 
			 
			
					
				Re: Park patched fixtures macro
				Posted: 15 Aug 2019, 08:50
				by icke_siegen
				Additionally, in order to make it run reliably, each step requires a little pause (at least in my tests). 
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<avolites.macros>
  <macro id="Avolites.Macros.ParkSelectedFixtures" name="Park Selected Fixtures">
    <description>Parks the currently selected fixtures.</description>
    <sequence>
      <step pause="0.01">Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step>
      <step pause="0.01">Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)</step>
      <step pause="0.01">Patch.Repatch.SetDmxAddressesFromSelectedFixture()</step>
      <step pause="0.01">Patch.Repatch.ParkSelectedFixtures()</step>
      <step pause="0.01">Handles.ClearSelection()</step>
    </sequence>
  </macro>
  
  <macro id="Avolites.Macros.ParkGrp100" name="Park Group 100">
    <description>Parks fixtures in Group 100.</description>
    <sequence>
      <step pause="0.01">Group.RecallGroupNumeric(100)</step>
      <step pause="0.01">Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step>
      <step pause="0.01">Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)</step>
      <step pause="0.01">Patch.Repatch.SetDmxAddressesFromSelectedFixture()</step>
      <step pause="0.01">Patch.Repatch.ParkSelectedFixtures()</step>
      <step pause="0.01">Handles.ClearSelection()</step>
    </sequence>
  </macro>
</avolites.macros>See 
https://www.avolites.de/wiki/macros:exa ... edfixtures 
			 
			
					
				Re: Park patched fixtures macro
				Posted: 18 Aug 2019, 12:32
				by sideshowbond
				I haven't used it extensively but parking 3 universes without step pauses worked just fine.
Thank you Greg, this is a brilliant tool when coming to a festival and you quickly want to unpatch your whole template file before you start patching in the house rig