Eyeon Talk:Script/Reference/Applications/Fuse/Classes/Input/LabelControl

From VFXPedia

< Eyeon Talk:Script | Reference/Applications/Fuse
Revision as of 07:51, 30 November 2011 by Daniel (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What does LBLC_PickButton do? Er, scratch that, I see what it does, but what is it DESIGNED to do? I'm not grokking the intent. --Chad 11:33, 29 November 2011 (EST)

Ah, I see. It's so you can pick values for nested controls like sliders or screws. --Chad 12:26, 29 November 2011 (EST)
The intent is not to use LBLC_PickButton directly with a LabelControl, but for it to be used indirectly through BeginControlNest(), as per an example that had been shown to you before (with a note that the IC_ControlID specifies the channel number to pick from), and you had even confirmed that it worked perfectly:
self:BeginControlNest("Something", "SomethingNest", true, {
    LBLC_PickButton = true });
 
    Input1 = self:AddInput("X Offset", "XOffset", {
        LINKID_DataType = "Number",
        INPID_InputControl = "SliderControl",
        IC_ControlID = 25 })
    Input2 = self:AddInput("Y Offset", "YOffset", {
        LINKID_DataType = "Number",
        INPID_InputControl = "SliderControl",
        IC_ControlID = 26 })
    Input3 = self:AddInput("Z Offset", "ZOffset", {
        LINKID_DataType = "Number",
        INPID_InputControl = "SliderControl",
        IC_ControlID = 27 })
self:EndControlNest()
--Stuart 13:30, 29 November 2011 (EST)
Yeah, I had forgotten about the nesting part. For whatever reason, I still associate "LabelControl" with labeling, not with the nesting functionality. --Chad 16:01, 29 November 2011 (EST)
You can still use LabelControl for simple labelling, of course. And you can add a pick button to a label without any nesting, by specifying the picked inputs using LBLC_NumInputs = <num> (next num inputs), LBLCID_InputGroup = <group id>, or a series of { LBLCP_Input = <input> } tags. --Daniel 02:51, 30 November 2011 (EST)