Replace colour palette

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

daanvg98
Posts: 16
Joined: 08 Sep 2018, 13:46

Replace colour palette

Postby daanvg98 » 19 Feb 2025, 09:11

Hi guys,

Trying to create a macro that replaces a colour pallete for a other colour.

step 1 blind active
step 2 select group (for example) 1
step 3 select colour ID:1 (for example)
step 4 merge or replace on ID:2 (for example)
step 5 clear
step 6 blind inactive
END MACRO

I based my macro on the PaletteChaseChanger (V3) on the avolites wiki ( https://www.avosupport.de/wiki/macros/e ... changer_v3 ), but I can't get it to work.
I have this right now:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Replace FX1 White" name="001 FX1 White">
    <sequence>
      <step pause="0.5">ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step>
      <step pause="0.5">Programmer.SetBlindMode(false, 0)</step>
      <step pause="0.5">Attribute.Mask.IncludeAll("Palette")</step>
      <step pause="0.5">Group.RecallGroupNumeric(91)</step>
      <step pause="0.5">Palette.ApplyPalette("Location=Colours,1,2", false)</step>
      <step pause="0.5">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,1,397")</step>
      <step pause="0.5">Palette.StoreCurrentPaletteReplace()</step>
      <step pause="0.5">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets,
        false, Expert.ClearMenu.FadeTime)</step>
      <step pause="0.5">ActionScript.SetProperty.Boolean("Programmer.BlindActive", false)</step>
      <step pause="0.5">Programmer.SetBlindMode(false, 0)</step>
    </sequence>
  </macro>
</avolites.macros>

Seems to me that the macro doesn't select the group correctly and only replaces the palette. The palette just becomes blanc after using the macro

Can someone check if I have done it correctly?

Thanks
User avatar
kimwida
Posts: 262
Joined: 05 Aug 2016, 16:26
Location: Seoul

Re: Replace colour palette

Postby kimwida » 02 Apr 2025, 16:44

You seem to have some problems with the group.
But you can use selecting fixture instead of group.
This is from my code which is working well.

Code: Select all

   <step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step>
   <step pause="0.01">Programmer.SetBlindMode(false, 0)</step>
   <step pause="0.01">Attribute.Mask.IncludeAll("Palette")</step>
   <step pause="0.01">Selection.Context.Programmer.SelectFixture(handle:"Location=Fixtures,1,17")</step>
   <step pause="0.01">Palette.ApplyPalette("Location=Colours,1,48", false)</step>
   <step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,48")</step>
   <step pause="0.01">ActionScript.SetProperty.Enum("Palette.StorePaletteMode", "Shared")</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>

Who is online

Users browsing this forum: No registered users and 8 guests