Methods | |
Color | customColor (Number i) |
Number | customCount () |
Color | getColor (Color initial=Qt::white) |
void | setCustomColor (Number i, Color c) |
void | setStandardColor (Number i, Color c) |
The DzColorDialog class is available in DAZ Script via the ColorDialog global variable. It provides a function to display an OS native color picker to the user - simply call the function as shown in the following example:
Example - Have the user select a color :
var color = ColorDialog.getColor();
Other functions are provided for getting and setting the pre-set colors listed in the picker - see the rest of the documentation for details.
Number DzColorDialog::customCount | ( | ) |
Shows a color picker dialog to the user.
initial | The color that the dialog will start with. |
Set the i'th custom color in the color picker
Set the i'th standard color in the color picker