User Tools

Site Tools


macros:example:parkselectedfixtures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:example:parkselectedfixtures [2019/08/15 06:26] – created icke_siegenmacros:example:parkselectedfixtures [2019/08/15 07:44] (current) – external edit 127.0.0.1
Line 3: Line 3:
 ====== Patch - Park selected fixtures ====== ====== Patch - Park selected fixtures ======
  
-^ by: | GRegory Haynes, August 2019 |+^ by: | Gregory Haynes, August 2019 |
 ^ published: | see http://forum.avolites.com/viewtopic.php?f=20&t=6207&p=22282 | ^ published: | see http://forum.avolites.com/viewtopic.php?f=20&t=6207&p=22282 |
 ^ description: | Parks the currently selected fixtures | ^ description: | Parks the currently selected fixtures |
Line 18: Line 18:
 ==== affected properties ==== ==== affected properties ====
   * [[:macros:property:Windows.PatchView.Handles]]   * [[:macros:property:Windows.PatchView.Handles]]
 +  * [[:macros:property:Patch.Repatch.SelectedFixtureHandles]]
  
-It is important to find the correct control namesee [[macros:identifier:controlname]]+>The repatch menu does not actually use the PatchSelectionit has its own property Patch.Repatch.SelectedFixtureHandles.
    
 ===== Code ===== ===== Code =====
Line 29: Line 30:
     <description>Parks the currently selected fixtures.</description>     <description>Parks the currently selected fixtures.</description>
     <sequence>     <sequence>
-      <step>Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step> +      <step pause="0.01">Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step> 
-      <step>Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)</step> +      <step pause="0.01">Handles.SetSourceHandleRangeFromHandles(Windows.PatchView.Handles, true)</step> 
-      <step>Patch.Repatch.SetDmxAddressesFromSelectedFixture()</step> +      <step pause="0.01">Patch.Repatch.SetDmxAddressesFromSelectedFixture()</step> 
-      <step>Patch.Repatch.ParkSelectedFixtures()</step> +      <step pause="0.01">Patch.Repatch.ParkSelectedFixtures()</step> 
-      <step>Handles.ClearSelection()</step>+      <step pause="0.01">Handles.ClearSelection()</step>
     </sequence>     </sequence>
   </macro>   </macro>
- 
      
 </avolites.macros> </avolites.macros>
 </code> </code>
  
 +Here, the  '' pause="0.01" '' seems to be required - if there is no pause, always the previously for repatching selected fixtures will be parked, and if there aren't any an exception is thrown.
  
 ===== Explanation ===== ===== Explanation =====
Line 46: Line 47:
 This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]]
  
-Each macro gets the currently selected fixtures and puts these handles in the menu property “Windows.PatchView.Handles”+  * The first line retrieves the current selection and stores it in menu property, it is not important which one just that it is the correct type 
- +  * From that we then set the source handle selection (this is the same selection that is used for copy, move, set legend etc.).  
-All fixtures in this property are then pan-inverted resppan-univerted.+  * The third line copies the source handle selection to the Repatch property (and initialises other properties used in the repatch menu) 
 +  * The forth line performs the Park operation and  
 +  * the last line clears the source handle selection once you are done.
  
 ===== How to use it ===== ===== How to use it =====
  
   * [[:macros:deploying|make this macro available]]   * [[:macros:deploying|make this macro available]]
-  * When needed, select some fixtures and apply this macro in order to invert pan for these fixtures.+  * When needed, select some fixtures and apply this macro in order to park these fixtures.
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/parkselectedfixtures.1565850360.txt.gz · Last modified: 2019/08/15 06:26 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki