/
getColorPickerColor
getColorPickerColor
Description
Gets the color value of the color picker user control that is specified by userControlID
.
The return value is a three element integer array, holding the red, green, and blue components of the selected color. Each component ranges in value from 0 to 255.
Functional area
User Window
Command syntax
Syntax
getColorPickerColor userControlID |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to operate on. |
Flags
None
Return value
integer array
Examples
// Get the color value of a Color Picker User Control int $windowId; int $controlId; int $color[]; // First create a User Window to place the Controls on $windowId = `createWindow "MyWindow"`; // Create the User Control on the Window. $controlId = `createColorPicker $windowId`; // Get the default color $color = `getColorPickerColor $controlId`; print $color;
Additional information
Related commands
, multiple selections available,
Related content
setColorPickerHandler
setColorPickerHandler
More like this
createColorPicker
createColorPicker
More like this
getControlText
getControlText
More like this
getMarkerConnectionColor
getMarkerConnectionColor
More like this
getColor
getColor
More like this
getNumBoxNum
getNumBoxNum
More like this