Eyeon:Script/Reference/Applications/Fuse/Classes/Input/SliderControl
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Input
Contents |
SliderControl
Description
The SliderControl presents a simple slider, which returns a Number value. To add a SliderControl, set the INPID_InputControl attribute of the AddInput function to the string "SliderControl".
Attributes
SLCS_LowName string : an optional left justified label that overrides the usual label. Used in conjunction with SLCS_HighName SLCS_HighName string : an optional right justified label displayed in conjunction with SLCS_LowName. See the Subtractive - Additive slider in the Merge tool for an example of the effect of these attributes.
.
Example
The following example is a simple Fuse which implements a Gain.
FuRegisterClass("SampleSlider", CT_Tool, { REGS_Category = "Fuses\\Samples", REGS_OpIconString = "SSl", REGS_OpDescription = "SampleSlider", }) function Create() InGain = self:AddInput("Gain", "Gain", { LINKID_DataType = "Number", INPID_InputControl = "SliderControl", INP_Default = 1.0, }) InImage = self:AddInput("Input", "Input", { LINKID_DataType = "Image", LINK_Main = 1, }) OutImage = self:AddOutput("Output", "Output", { LINKID_DataType = "Image", LINK_Main = 1, }) end function Process(req) local img = InImage:GetValue(req) local gain = InGain:GetValue(req).Value img:Gain(gain, gain, gain, gain) OutImage:Set(req, img) end
Tips for SliderControl (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/SliderControl