Eyeon:Script/Reference/Applications/Fuse/Classes/Input/CheckboxControl
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Input
Contents |
Description
The CheckboxControl displays a simple checkbox and label in the tools control window.
This control returns a Number with a value of either 1 (checked) or 0 (unchecked). To add a CheckboxControl, set the INPID_InputControl attribute of the AddInput function to the string "CheckboxControl".
A common usage is to display several checkbox controls on the same line through use of the AddInput functions ICD_Width attribute. It is also generally a good idea to set INP_Integer = true.
Attributes
CBC_TriState boolean : this attribute determines whether the checkbox displays two states or three.
.
Example
The following shows four checkboxes on the same row of the control window.
InR = self:AddInput("Red", "Red", { LINKID_DataType = "Number", INPID_InputControl = "CheckboxControl", INP_Integer = true, INP_Default = 1.0, ICD_Width = 0.25, }) InG = self:AddInput("Green", "Green", { LINKID_DataType = "Number", INPID_InputControl = "CheckboxControl", INP_Integer = true, INP_Default = 1.0, ICD_Width = 0.25, }) InB = self:AddInput("Blue", "Blue", { LINKID_DataType = "Number", INPID_InputControl = "CheckboxControl", INP_Integer = true, INP_Default = 1.0, ICD_Width = 0.25, }) InA = self:AddInput("Alpha", "Alpha", { LINKID_DataType = "Number", INPID_InputControl = "CheckboxControl", INP_Integer = true, INP_Default = 1.0, ICD_Width = 0.25, })
Tips for CheckboxControl (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/CheckboxControl