Eyeon:Script/Reference/Applications/Fuse/Classes/Input/RangeControl
From VFXPedia
Contents |
Description
The RangeControl produces a control with a high and low range which can be used to specify a range of value. It The control displayed is actually composed two seperate controls, each of which returns a Number value. To add a RangeControl, create two inputs using the AddInput function. Set the INPID_InputControl attribute to the string "RangeControl", and make sure both controls have the IC_ControlGroup set to the same value.
Set the input which will represent the Low value to have a IC_ControlID of 0, and the input which represents the High value to IC_ControlID of 1. See the example below.
Attributes
RNGCS_LowName string : The label to use on the left (low) side of the control. Overrides the name set by the first argument in the AddInput() function. RNGCS_MidName string : The label to use in the center of the control. Defaults to blank. RNGCS_HighName string : The label to use on the right (high) side of the control. Overrides the name set by the first argument in the AddInput() function. RNGCD_LowOuterLength number : This attribute can be used to specify the displayed Low limit for the range control. Normally this will be equal to the INP_Default value, or to 0. Lower values can still be entered into the control, this only sets the initial display. Using this attribute will also color the range control yellow. RNGCD_HighOuterLength number : This attribute can be used to specify the displayed High limit for the range control. Normally this will be equal to the INP_Default value, or to 1. Higher values can still be entered into the control, this only sets the initial display. Using this attribute will also color the range control yellow.
.
Example
The following is an example AddInput function that displys a range control.
InGLow = self:AddInput("Green Low", "GreenLow", { LINKID_DataType = "Number", INPID_InputControl = "RangeControl", INP_Default = 0.0, IC_ControlGroup = 2, IC_ControlID = 0, }) InGHigh = self:AddInput("Green High", "GreenHigh", { LINKID_DataType = "Number", INPID_InputControl = "RangeControl", INP_Default = 1.0, IC_ControlGroup = 2, IC_ControlID = 1, })
Tips for RangeControl (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/RangeControl