Titan Property
====== Palette.CurrentPaletteHandle ======
^ API | http://api.avolites.com/10.1/Palette.CurrentPaletteHandle.html |
^ description | ASSUMPTION: that's the handle of the palette which is marked as 'current' |
^ [[macros:namespace]] | [[macros:namespace:palette]] |
^ type | [[macros:identifier:handle]] |
== example ==
ActionScript.SetProperty("Palette.CurrentPaletteHandle", "Location=Colours,2,2")
This points the property 'CurrentpaletteHandle' to the 2nd palette on page 2 in the Colours workspace window.
In order to use a palette by its usernumber you need to write
ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"paletteHandleUN=110")
>The reason for this syntax is: the function ActionScript.SetProperty has no idea which type of property it has to set, let alone which type of handle (you can have the same usernumber in palettes, playbacks, macros etc.). Thus in this case there is this notation which also defines the type of handle - here: paletteHandleUN - a palette handle defined by its usernumber.
http://forum.avolites.com/viewtopic.php?f=20&t=6196
== used in ==
{{backlinks>.}}