Example
by: | Jonas Nijs, Dec. 2017 |
---|---|
published: | December 2017 |
description: | changes the colours of a color chase to any color you want |
remarks: | This is an updated version to the old one, this time using system syntax so it goes faster and whitout your screen flickering. |
Also see the author's remarks on how to use it (below the code) | |
In the original post there is also a short manual linked which you might find helpful. |
Kim Wida developed a slightly changed version: PaletteChaseChanger (V3).
<?xml version="1.0" encoding="UTF-8"?> <avolites.macros> <!-- V2.0 by Nijs Jonas 7/12/2017 --> <macro id="UserMacro.colchasechanger2"> <name>Color chase changer</name> <sequence> <step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step> <step pause="0.01">Programmer.SetBlindMode(false, 0)</step> <step pause="0.01">Group.RecallGroupNumeric(100)</step> <step pause="0.01">Palette.ApplyPalette("Location=Colours,1,16", false)</step> <step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,1")</step> <step pause="0.01">Palette.StoreCurrentPaletteReplace()</step> <step pause="0.01">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets, false, Expert.ClearMenu.FadeTime)</step> <step pause="0.01">Group.RecallGroupNumeric(100)</step> <step pause="0.01">Palette.ApplyPalette("Location=Colours,1,17", false)</step> <step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,2")</step> <step pause="0.01">Palette.StoreCurrentPaletteReplace()</step> <step pause="0.01">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets, false, Expert.ClearMenu.FadeTime)</step> <step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", false)</step> <step pause="0.01">Programmer.SetBlindMode(false, 0)</step> </sequence> </macro> </avolites.macros>
a brief explanation of the syntax used. For all the other XML details please refer to Formats and syntax
Essentially this macro does:
The commands are as follows:
ActionScript.SetProperty.Boolean(“Programmer.BlindActive”, true)
and Programmer.SetBlindMode(false, 0)
toggle to blind mode, see Blind Mode On/OffGroup.RecallGroupNumeric(100)
recalls a specific group of fixtures - here group no. 100Palette.ApplyPalette(“Location=Colours,1,16”, false)
selects the colour palette on the first page of the Colours workspace window, 16th slotActionScript.SetProperty(“Palette.CurrentPaletteHandle”, handle:“Location=Colours,2,1”)
sets the colour palette on the second page on the 1th slot into the desks memory, i.e. makes it the current palette handle for the next actionsPalette.StoreCurrentPaletteReplace()
replaces the palette in the desks memory - the active palette handle - with what's in the programmer Programmer.Editor.Clear(…)
clears the programmer (for the parameters see Programmer.Editor.Clear - clears according to the current clear mask, clearing the presets as setglobally, in the globally set clear/release time) Palette.ApplyPalette(“Location=Colours,1,17”, false)
and ActionScript.SetProperty(“Palette.CurrentPaletteHandle”, handle:“Location=Colours,2,2”)
, in order to replace the background colourActionScript.SetProperty.Boolean(“Programmer.BlindActive”, false)
and Programmer.SetBlindMode(false, 0)
exit blind mode again - see above