Eyeon:Script/Reference/Applications/Fuse/Classes/Input/ColorControl

From VFXPedia

< Eyeon:Script | Reference | Applications | Fuse | Classes | Input
Revision as of 23:27, 6 March 2008 by Izyk (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

  1. Red
  2. Green
  3. Blue
  4. Alpha
  5. BackgroundR
  6. BackgroundG
  7. BackgroundB
  8. BackgroundA
  9. RealR
  10. RealG
  11. RealB
  12. RealA
  13. Coverage
  14. NormalX
  15. NormalY
  16. NormalZ
  17. Z
  18. U
  19. V
  20. Object
  21. 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