Slider
Introduction
The Slider provides an easy way to set a numerical value between a defined minimum and maximum. It is useful as an interface element for exploring models by interactively changing their parameters. Sliders are frequently used to modify variables in a Formula or to set the values of cells in Excel spreadsheets.
Viewer Control:
Adjusting the Slider's Value
- Click and drag the Slider's handle to adjust its value.
- Click anywhere along the Slider's track to move its handle and set its value to that location.
Property Panel:
- Slider Value
- Specifies the current value of the Slider
- Minimum Value
- Specifies the lower bound of the Slider's range
- Maximum Value
- Specifies the upper bound of the Slider's range
Orientation
- Horizontal
- Orients the Slider horizontally in the Viewer.
- Vertical
- Orients the Slider vertically in the Viewer.
Sliding Type
- Continuous Sliding
- Allows the Slider's control to be dragged to any decimal value in its range
- Stepped Sliding
- Forces the Slider's value to move in intervals equivalent to its step size. For example, stepped sliding with a step size of 1 and a minimum value of 1 will only output positive integer values: 1, 2, 3, 4, etc.
- Step Size
- Sets the interval of values that the Slider's control can output
Input Menu:
Property Connectors → Set Maximum Value
Sets the Slider's maximum value.
Accepted Datatypes:
- Number
- Must be greater then the Slider's current minimum value
Triggered Outputs:
- Output Message:
- Property Connectors → Maximum Value
Properties → Set Minimum Value
Sets the Slider's minimum value.
Accepted Datatypes:
- Number
- Must be less then the Slider's current maximum value
Triggered Outputs:
- Output Message:
- Properties → Get Minimum Value
Property Connectors → Set Step Value
Sets the interval between steps in "Stepped Sliding" mode.
Accepted Datatypes:
- Number
Triggered Outputs:
- Output Message:
- Properties → Get Step Value
Set Value
Sets the Slider's value. This value will be rounded to the nearest step if "Stepped Sliding" is enabled in the Property Panel.
Accepted Datatypes:
- Number
Triggered Outputs:
Set Percent
Sets the Slider's value as a percentage of the range defined by its "Maximum" and "Minimum" properties. This value will be rounded to the nearest step if "Stepped Sliding" is enabled in the Property Panel.
Accepted Datatypes:
- Number
- A value between 0 and 1.
Triggered Outputs:
Output Menu:
Property Connectors → Get Maximum Value
Gets the Slider's current maximum value.
Output Datatype:
- Number
Triggered By:
- Input Message:
- Property Connectors → Set Maximum Value
Property Connectors → Get Minimum Value
Gets the Slider's current minimum value.
Output Datatype:
- Number
Triggered By:
- Input Message:
- Property Connectors → Set Minimum Value
Property Connectors → Get Step Value
Gets the interval between steps in "Stepped Sliding" mode.
Output Datatype:
- Number
Triggered By:
- Input Message:
- Properties → Set Step Value
Get Value
Gets the Slider's current value.
Output Datatype:
- Number
Triggered By:
- Input Message:
- Set Value
- Input Message:
- Set Percent
- Action:
- Changing the Slider's value in the Viewer
- Action:
- Fire-On-Connect
Get Percent
Gets the current value of the Slider as a percentage of the range defined by the Slider's "Minimum" and "Maximum" values.
Output Datatype:
- Number
- A number between 0 to 1.
Triggered By:
- Input Message:
- Set Value
- Input Message:
- Set Percent
- Action:
- Changing the Slider's value in the Viewer
- Action:
- Fire-On-Connect