User Tools

Site Tools


macros:example:palettechasechanger_v3

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:palettechasechanger_v3 [2018/06/25 16:13] icke_siegenmacros:example:palettechasechanger_v3 [2022/01/05 16:42] (current) – external edit 127.0.0.1
Line 10: Line 10:
 This is related to [[macros:example:colourchasechanger_v2]]. This is related to [[macros:example:colourchasechanger_v2]].
  
-{{tag>[palette chase blind]}}+{{tag>palette chase blind}}
  
 ==== functions ==== ==== functions ====
Line 36: Line 36:
 <code xml> <code xml>
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
-<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instancexsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">+<avolites.macros
 + 
 +<!-- 
 +    Note the different numbering: 
 +    - "Location=Positions,1,68is 1-based'Positions,1,68' refers to the 68th item on page 1 of the Positions window 
 +    ("Positions",0,69) [0-based] refers to to item 70 on page 1 of the Positions window 
 +    - ("Positions", 89) [0-based] refers to item in slot 90 of the current page of the Positions window 
 +--> 
   <macro id="UpTwoColorChange" name="Up Two Change">   <macro id="UpTwoColorChange" name="Up Two Change">
-  <!-- This swops palette 1,71 with 1,68 and 1,72 with 1,69. -->+  <!-- This replaces palette 1,71 with 1,69 and 1,72 with 1,70. -->
     <sequence>     <sequence>
       <step>ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step> <!-- go blind -->       <step>ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step> <!-- go blind -->
Line 44: Line 52:
       <step>Attribute.Mask.IncludeAll("Palette")</step>  <!-- ??? -->       <step>Attribute.Mask.IncludeAll("Palette")</step>  <!-- ??? -->
       <step>Group.RecallGroupNumeric(17)</step>  <!-- recall group #17 -->       <step>Group.RecallGroupNumeric(17)</step>  <!-- recall group #17 -->
-      <step>Palette.ApplyPalette("Location=Positions,0,68", false)</step>  <!-- set to palette Pos 0,68 -->+      <step>Palette.ApplyPalette("Location=Positions,1,69", false)</step>  <!-- set to palette Pos 1,69 -->
       <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Positions,1,71")</step>       <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Positions,1,71")</step>
       <step>Palette.StoreCurrentPaletteReplace()</step>  <!-- store as palette 1,71 -->       <step>Palette.StoreCurrentPaletteReplace()</step>  <!-- store as palette 1,71 -->
Line 50: Line 58:
         false, Expert.ClearMenu.FadeTime)</step> <!-- clear -->         false, Expert.ClearMenu.FadeTime)</step> <!-- clear -->
       <step>Group.RecallGroupNumeric(17)</step> <!-- recall group #17 -->       <step>Group.RecallGroupNumeric(17)</step> <!-- recall group #17 -->
-      <step>Palette.ApplyPalette("Location=Positions,0,69", false)</step>  <!-- set to palette Pos 0,69 -->+      <step>Palette.ApplyPalette("Location=Positions,1,70", false)</step>  <!-- set to palette Pos 1,70 -->
       <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Positions,1,72")</step>       <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Positions,1,72")</step>
       <step>Palette.StoreCurrentPaletteReplace()</step>  <!-- store as palette 1,72 -->       <step>Palette.StoreCurrentPaletteReplace()</step>  <!-- store as palette 1,72 -->
Line 61: Line 69:
      
   <macro id="UpChaseMove" name="Up Chase Move">   <macro id="UpChaseMove" name="Up Chase Move">
-    <!-- This shifts palettes 1,60~69 in pairs. -->+    <!-- This shifts palettes 1,61~70 in pairs. -->
     <sequence>     <sequence>
       <step>Handles.SetSourceHandleFromHandle(Handles.GetHandle("Positions",0,69))</step>       <step>Handles.SetSourceHandleFromHandle(Handles.GetHandle("Positions",0,69))</step>
Line 73: Line 81:
       <step>Handles.ClearSelection()</step>       <step>Handles.ClearSelection()</step>
              
-      <!-- add more pairs to shift palettes here, see full file +      <!-- add more pairs to shift palettes here, see full file --> 
     </sequence>     </sequence>
   </macro>     </macro>  
Line 84: Line 92:
 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]]
  
-tbd+The multiple steps are briefly explained inline. It is best understood wirht e applications hints below: 
 +  * a chaser should be created which toggles fixture group #17 between palettes #71 und #72 
 +  * various palettes should be stored as palettes #60~69, with the even numbers being something like 'foreground' and the odd numbers something like 'background' 
 +  * the macro ''Up Chase Move'' cycles through these palettes in pairs, in a way that palette #68 always contains a 'foreground' palette and #69 is always the corresponding 'background' palette. You may apply this macro multiple times. The funtions sued to move a paletted are similar to [[macros:example:movehandle|moving a chase handle]]. 
 +  * finally the macro ''Up Two Change'' toggles to blind, copies the contents from palette #68 to #71 and #69 to #72, and exits blind mode. This can be looked at in [[macros:example:colourchasechanger_v2|]].  
 + 
 +>> => Jonas Nijs's ColourChaseChanger(v2) macro is very very useful. But it's a little uncomfortable to use in busking show, becuase it need some step to copy palettes. So I made a macro which circulate 8 palettes with one button. If you wan to circulate 10 or more, you can edit it. 
 + 
 +<fs x-large>**Note the different numbering:**</fs> 
 +  - "Location=Positions,1,68" is 1-based. 'Positions,1,68' refers to the 68th item on page 1 of the Positions window 
 +  - ("Positions",0,69) [0-based] refers to to item 70 on page 1 of the Positions window 
 +  - ("Positions", 89) [0-based] refers to item in slot 90 of the current page of the Positions window
  
 ===== How to use it ===== ===== How to use it =====
macros/example/palettechasechanger_v3.1529943210.txt.gz · Last modified: 2018/06/25 16:13 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki