macros:example:createmixedcolourpalette
This is an old revision of the document!
Table of Contents
Example
Create a mixed colour palette
by: | Alex del Bondio, January 2019 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=5991 |
description: | create a mixed colour palette based on groups and palettes |
remarks: | idea/request by Michiel3000 |
functions
affected properties
Code
<step>Programmer.Editor.ClearAll()</step> <step>Group.RecallGroupNumeric(101)</step> <step>Palette.ApplyPalette("paletteHandleUN=100", false)</step> <step>Group.RecallGroupNumeric(102)</step> <step>Palette.ApplyPalette("paletteHandleUN=100", false)</step> <step>Group.RecallGroupNumeric(103)</step> <step>Palette.ApplyPalette("paletteHandleUN=101", false)</step> <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"paletteHandleUN=113")</step> <step>Palette.StoreCurrentPaletteReplace()</step> <step>Programmer.Editor.ClearAll()</step>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Programmer.Editor.ClearAll
ensure the editor is empty- one by one various groups are called and a palette is applied:
Group.RecallGroupNumeric
selects a groupPalette.ApplyPalette
applies a palette to the fixtures in this group
ActionScript.SetProperty(“Palette.CurrentPaletteHandle”, handle:…)
selects the palette where the result is to be storedPalette.StoreCurrentPaletteReplace
stores/replaces the target palette- a final
Programmer.Editor.ClearAll
clears the editor again
How to use it
This is a snippet only - adapt and use it in your own macros.
You could leave a comment if you were logged in.
macros/example/createmixedcolourpalette.1552213664.txt.gz · Last modified: 2019/03/10 10:27 by icke_siegen