Color List in a script UI

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
User avatar
jforlach
Posts: 1
Joined: December 15th, 2022, 10:41 am

Hi,

I'm making a script at the moment where people can choose beetween colors from a list.

Image

At the moment they have a choice of 7 colors (C1, C2, C3 etc...
I would like to have real colors in that list (small colored squares) rather than text that refers to that color

my code for this list is

var couleur1_array = ["C1","C2","C3","C4","C5","C6","C7"];
var couleur1 = group3.add("dropdownlist", undefined, undefined, {name: "couleur1", items: couleur1_array});
couleur1.selection = 0;

Is there a way to add a Colored Buttons list ?

Thanks a lot

Post Reply