Repository navigation
sliders
Home > Sliders & number inputs
< Previous: Adding & connecting nodes | Next: Keeping the node graph tidy >
Feed numbers into the node graph with sliders, constants, and range shorthand.
Most patterns are driven by numbers - counts, angles, offsets. Locus gives you two ways to supply them, plus shortcuts for setting a slider's range fast.
Important
Every number on the node side is in millimeters. The working unit relabels the modeling window only; it does not reach the node graph, so a 25 typed into a node input is 25 mm whatever unit you are drawing in. When your working unit is not mm, Locus shows a warning stripe across the top of the node pane so the two panes cannot be confused. See the node graph is always millimeters, and Constants & unit conversions for the intomm / mmtoin family that moves a value across units inside the node graph.
A Slider is a draggable value with a configurable range. Drag its handle to sweep a number, and everything downstream updates live - perfect for dialling in a count or an offset by eye. Its single output can fan out to as many inputs as you like, so one slider can drive several nodes at once.
Double-click the slider's value to open a small panel where you set the exact Value (the field is focused first - type a number and press Return), along with its Min, Max, and Step.
A Number is the simplest source: a fixed numeric constant with one output and no range or stepping. Double-click its field and type the value. Use it when you want a set figure that won't move, rather than something to drag.
Note
Many node inputs accept a number typed straight into the socket, no separate node needed. Reach for a Slider or Number node when you want to reuse a value across the node graph or drag it live.
Wire a Slider, Number, or Color into an input and it renames itself after what it drives - a bare "Slider" feeding a Grid's Count X relabels itself Grid Count X, so a node graph full of sources reads as what they do rather than a row of identical "Slider" boxes. Drive several inputs of one node and it takes their shared name: Count X and Count Y together read Grid Count. Rename it yourself and Locus leaves your name alone; disconnecting never renames it. (Sources whose output is geometry are left as they are.)
Instead of placing a slider and opening its config, type three comma-separated numbers into the node search - for example 0,0.05,1. Locus reads them as min, default, max and creates a slider already set to that range. It's the quickest way to spin up a ready-to-use slider.
The number of decimal places you type in the default sets the step:
-
0.05has two decimals, so the step is0.01 -
5has none, so the step is1 -
0.050has three, so the step is0.001
If you enter the range backward (min larger than max) Locus swaps them, and it clamps the default into range.
A slider only ever lands on values in its own series - starting at the minimum and stepping up by the step size (min, min + step, min + 2 x step, and so on). Whether you drag, type a value, or set it in the config dialog, the result snaps to a real series member.
Two things follow from this:
- A slider with min 1, step 2 produces 1, 3, 5, 7, 9: measured from its minimum, not from zero.
- If the maximum isn't itself on the series, the slider stops at the largest step below it. With min 1, step 2, max 10 it tops out at 9, not 10.
Tip
Because a default typed with N decimals always lines up with a step of that size, the min,default,max shorthand always produces a default that's already on the series.
< Previous: Adding & connecting nodes | Next: Keeping the node graph tidy >
Found a bug or have feedback? Open an issue | Docs home | Videos | Credits
Getting Started
- Welcome
- How Locus came to be
- Videos
- Community & support
- Installing & launching
- Licensing & activation
- Beta License Agreement
- Core concepts
- Interface tour
- Your first pattern
Modeling - Drawing
- Canvas basics
- Points
- Typing coordinates
- Lines, rays & segments
- Circles & arcs
- Ellipses
- Compass & straightedge
- Rectangles & squares
- Constraining with Shift
Modeling - Editing
- Selecting objects
- Transform tools
- Align & distribute
- Duplicate, detach & ownership
- Regions & booleans
- Cleanup
- Weld & seams
- Style palettes & Re-ink
Annotation
Layers
Modeling Menus
- File
- Edit
- View
-
Draw
- Select
- Point
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Through 3 Points
- Arc: Center, Start, End
- Straightedge
- Compass
- Compass: Radius
- Ellipse: Center + Axes
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center, Vertex
- Regular Polygon: Center, Edge Midpoint
- Dimension: Linear
- Dimension: Angle
- Dimension: Radial
- Label
- Construct
- Combine
- Transform
- Select
- Nodes
The Nodes Window
- Basics of visual programming
- How the node graph works
- Sockets & wires
- Adding & connecting nodes
- Sliders & number inputs
- Keeping the node graph tidy
- View menu (Nodes)
- Lists & collections
- Constants & unit conversions
Node Library
- Overview
- Input
-
Primitives
- Point
- Point: Polar
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Apollonius
- Circle Tangent to...
- Circle: 3 Points
- Arc
- Ellipse
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center
- Rectangular Grid
- Oblique Grid
- Triangular Grid
- Construct
- Transform
- Image & Fields
- Combine
-
Data
- Measure
- Numbers
- Lists
- Select
- Clean up
- Display
Clusters
Bridging Modeling & Nodes
Patterns & Symmetry
Image-Driven Fields
Saving, Exporting & Files
Preferences & Language
CLI
Reference