Table of Contents

Example

Create a mixed colour palette (Snippet)

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

From Titan v15 on ClearAll() requires two parameters, see Programmer.Editor.ClearAll.
Simply change the relevant line(s) to Programmer.Editor.ClearAll(false, false).

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

Note that the target palette needs to be recorded as normal palette in the first place else this would store only the last colour information as shared or global.

How to use it

This is a snippet only - adapt and use it in your own macros.