My first version worked great and looked like this:
Code: Select all
<step pause="0.01">Palette.ApplyPalette("Location=Colours,2,1", false)</step>
<step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,10")</step>
<step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
I am now trying to use userNumbers rather than their locations in the window. I have tried changing it to this:
Code: Select all
<step pause="0.01">Palette.ApplyPalette(userNumber:101, false)</step>
<step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"userNumber:110")</step>
<step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
The Palette.ApplyPalette works but the ActionScript stops the macro. I have tried a bunch of different ways of quoting the second value in the ActionScript but to no avail.
I hope someone can help me figure out how to complete this! Here is the complete code for full reference:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id="01MacRedWhite" name="01 Mac Red White">
<description>Recall and Replace color palettes</description>
<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(101) </step>
<step pause="0.01">Palette.ApplyPalette("Location=Colours,2,1", false)</step>
<step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,10")</step>
<step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
<step pause="0.01">Palette.ApplyPalette("Location=Colours,2,2", false)</step>
<step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,11")</step>
<step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
<step pause="0.01">Programmer.Editor.ClearAll()</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>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id="CCMac01RedWhite" name="CC Mac 01 Red White">
<description>Recall and Replace color palettes</description>
<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(101) </step>
<step pause="0.01">>Palette.ApplyPalette(userNumber:101, false)</step>
<step pause="0.01">>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"userNumber:110")</step>
<step pause="0.01">>Palette.StoreCurrentPaletteReplace()</step>
<step pause="0.01">>Palette.ApplyPalette(userNumber:102, false)</step>
<step pause="0.01">>ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"userNumber:111")</step>
<step pause="0.01">>Palette.StoreCurrentPaletteReplace()</step>
<step pause="0.01">>Programmer.Editor.ClearAll()</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>