Page 1 of 1

StorePaletteMode

Posted: 23 Jan 2019, 23:26
by sideshowbond
How would I go on about using

Code: Select all

ActionScript.SetProperty(Palette.StorePaletteMode,[value])

in a macro?

When running the API get command I get 2 as a result which would make me assume the modes are 0,1,2 (normal, shared, global) however I struggle to set the property via macro. I get the following in the log viewer
Object of type 'Avolites.Acw.Titan.AcwPaletteMode' cannot be converted to type 'System.String'.

Re: StorePaletteMode

Posted: 03 Feb 2019, 19:32
by Gregory
For starters you are missing quotes around the property ID. The type of the property is an enumeration so you should either use the Math.ToEnum function to create the value or better still just use ActionScript.SetProperty.Enum.