User Tools

Site Tools


macros:example:storepalette

Example

Palette - Store

by:
published: October 2017
description: Store a Palette
remarks: maybe useful as building block for other macros, and to explain the syntax

functions

affected properties

Code

storepalette22.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
  <macro id="Avolites.Macros.StorePalette22" name="Store Palette 22">
    <description>Store Palette 22</description>
    <sequence>
      <step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,2")</step>
      <step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
    </sequence>
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

  • the property Palette.CurrentPaletteHandleis set to a specific palette (Location=Colours,2,2 is the 2nd palette on page 2 in the Colours workspace window)
  • then Palette.StoreCurrentPaletteReplace() stores the contents of the programmer into this palette

How to use it

make this macro available

Essentially this is more an example to show the syntax and use. However you can put some values into the programmer (select fixtures, set attributes), and then call this macro, in order to replace a particular palette.

You could leave a comment if you were logged in.
macros/example/storepalette.txt · Last modified: 2019/11/15 07:46 by yyy898

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki