Eyeon:Script/Reference/Applications/Fuse/Classes/Input/ColorControl
From VFXPedia
Contents |
Description
The ColorControl adds a dialog used to select a color. It actually consists of several different sliders and button controls combined together.
All of the Inputs associated with a ColorControl return a Text value. To add a ColorControl, set the INPID_InputControl attribute of the AddInput function to the string "ColorControl".
All the Inputs that make up a ColorControl should have the same IC_ControlGroup attribute. The Red slider should have an IC_ControlID of 0, Green is 1, Blue is 2 and Alph s 3. See the example below.
Note that each of the elements is optional - it is perfectly valid to have a color control that displays only an Alpha slider, for example. Additionally, this control can be used to show more than just RGBA. This can be handy for producing color pickers for other channels in the image.
- Red
- Green
- Blue
- Alpha
- BackgroundR
- BackgroundG
- BackgroundB
- BackgroundA
- RealR
- RealG
- RealB
- RealA
- Coverage
- NormalX
- NormalY
- NormalZ
- Z
- U
- V
- Object
- Material
Attributes
CLRC_ShowWheel boolean : This optional attribute determines whether the color wheel will be displayed. CLRC_ColorSpace string : This optional attribute is used to specify which color space is used to draw the wheel. Valid options are "HSV", "HLS" and "YUV"
.
Example
An example of a full ColorControl.
InR = self:AddInput("Red", "Red", { LINKID_DataType = "Number", INPID_InputControl = "ColorControl", INP_MinScale = 0.0, INP_MaxScale = 1.0, INP_Default = 1.0, ICS_Name = "Color", IC_ControlGroup = 1, IC_ControlID = 0, }) InG = self:AddInput("Green", "Green", { LINKID_DataType = "Number", INPID_InputControl = "ColorControl", INP_MinScale = 0.0, INP_MaxScale = 1.0, INP_Default = 1.0, IC_ControlGroup = 1, IC_ControlID = 1, }) InB = self:AddInput("Blue", "Blue", { LINKID_DataType = "Number", INPID_InputControl = "ColorControl", INP_MinScale = 0.0, INP_MaxScale = 1.0, INP_Default = 1.0, IC_ControlGroup = 1, IC_ControlID = 2, }) InA = self:AddInput("Alpha", "Alpha", { LINKID_DataType = "Number", INPID_InputControl = "ColorControl", INP_MinScale = 0.0, INP_MaxScale = 1.0, INP_Default = 1.0, IC_ControlGroup = 1, IC_ControlID = 3, })
Tips for ColorControl (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/ColorControl