Page 1 of 1

Set Palette Copy Mode

Posted: 07 Jan 2020, 06:06
by kimwida

Code: Select all

      <step pause="0.01">Palette.ApplyPalette("Location=Colours,1,10", false)</step>
      <step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,1,18")</step>
      <step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>


I want this code to run always with "Shared Palette" mode.
What code should I add??

Re: Set Palette Copy Mode

Posted: 07 Jan 2020, 10:19
by sideshowbond
I guess it would be one of these
https://api.avolites.com/12.0/Palette.RecordMode.html
https://api.avolites.com/12.0/Palette.StorePaletteMode.html
However I have no clue about how to format the value in these commands...

Re: Set Palette Copy Mode

Posted: 07 Jan 2020, 11:58
by kimwida
Thank you. It works.

Code: Select all

   <step pause="0.01">ActionScript.SetProperty.Enum("Palette.StorePaletteMode", "Shared")</step>

Re: Set Palette Copy Mode

Posted: 07 Jan 2020, 15:51
by sideshowbond
brilliant, thanks for sharing the result :)