StorePaletteMode

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

Moderator: Moderators

User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

StorePaletteMode

Postby sideshowbond » 23 Jan 2019, 23:26

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'.
User avatar
Gregory
Posts: 1300
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: StorePaletteMode

Postby Gregory » 03 Feb 2019, 19:32

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.

Who is online

Users browsing this forum: No registered users and 22 guests