Eyeon:Script/Reference/Applications/Fuse/Classes/Input/LabelControl
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Input
Contents |
Description
The LabelControl presents a single short text label to the control window for the tool. It does not return any value. To add a LabelControl, set the INPID_InputControl attribute of the AddInput function to the string "LabelControl".
The actual displayed value of the label control is set as the first argument to AddInput
This control should always have the INP_External = false attribute set.
Attributes
Example
InLabel = self:AddInput("This is a Label", "Label1", { LINKID_DataType = "Text", INPID_InputControl = "LabelControl", INP_External = false, INP_Passive = true, })
Tips for LabelControl (edit)
- A LabelControl is also used as a way to toggle the visibility of other controls. To create such a control nest, use the BeginControlNest function. It will create a LabelControl with some additional attributes:
LBLC_DropDownButton = true -- turns a label control into a control nest LBLC_NumInputs = 2 -- how many of the following inputs will be part of the control nest LBLC_NestLevel = 1 -- ?
- In addition to control nests, a LabelControl can also host the pick button. Set LBLC_PickButton = true and specify the picked inputs using LBLC_NumInputs = <num> (next num inputs), LBLCID_InputGroup = <group id>, or a series of { LBLCP_Input = <input> } tags. (taken from discussion page)