In our previous lesson, we opened the door to visual programming by navigating the Grasshopper canvas and building our first parametric definition. We saw how components are connected by wires to create a flow of data, generating a live geometric preview in Rhino. The simple number sliders we used were just a glimpse into the control center of a parametric model.
Today, we will master these controls. This lesson's objective is to use number sliders and other input components to drive geometric outputs with precision. By the end of this session, you will be able to configure various inputs to explore design possibilities rapidly and intuitively. This skill is the foundation for creating dynamic, responsive architectural models.
The Number Slider: Your Primary Control
In Grasshopper, the Number Slider is the most common component for interactive input. In the last lesson, you used it to define coordinates. Now, let's explore its full capabilities. You can create a slider by double-clicking the canvas and typing a number (e.g., "15.5") or by searching for "Number Slider".
The true power of the slider is revealed when you configure it. The following video provides a clear demonstration of adding a slider and connecting it to a geometric component.
Getting Started with Grasshopper 3D - BEGINNERS START HERE!
This clip from The Rhino Essentials channel demonstrates how to add an input, connect it to a component, and adjust its properties to control geometry.
Watch the segment from chaining these components. The demonstrator uses a Control Knob, but the principle is identical for a Number Slider. Notice how right-clicking on the component brings up a menu to edit its range and numeric type.
As the video shows, right-clicking on a slider opens its properties menu. This is where you gain precise control. Let's break down the key settings:
- Name: It is crucial to give your sliders descriptive names (e.g., "Radius," "Height"). This makes your algorithm understandable to others and to your future self.
- Expression: You can apply a mathematical expression to the slider's output (e.g.,
x*2). - Slider Type: This menu, labeled "R" for Floating Point Numbers by default, allows you to constrain the output.
- R (Floating Point): Real numbers with decimals, for continuous values like length or radius.
- N (Integers): Whole numbers, ideal for counts, like the number of floors in a building or divisions along a curve.
- E (Even Numbers): Constrains output to even integers.
- O (Odd Numbers): Constrains output to odd integers.
- Digits: Sets the decimal precision for floating-point sliders.
- Min / Max: Defines the slider's numeric domain, setting the lower and upper bounds of your parameter.
Exercise: Parametric Circle
Let's apply this knowledge. Recreate the definition shown in the image below. The goal is to create a circle whose center coordinates (X and Y) and radius are each controlled by a separate, precisely-configured Number Slider.

- Place a
Circlecomponent on the canvas (this one requires a plane and a radius). - Create three
Number Slidercomponents. - Configure them as follows:
- Slider 1: Name it
X-Coordinate. Set the type to Integers (N) and the range from -50 to 50. - Slider 2: Name it
Y-Coordinate. Set the type to Integers (N) and the range from -50 to 50. - Slider 3: Name it
Radius. Set the type to Floating Point (R), the range from 1.0 to 100.0, and the digits to 1.
- Slider 1: Name it
- To create the circle's center point, place a
Construct Pointcomponent. ConnectX-Coordinateto thexinput andY-Coordinateto theyinput. - Connect the
Pointoutput ofConstruct Pointto theP(Plane) input of theCirclecomponent. Grasshopper automatically understands that a point can define the origin of a default XY plane. - Connect the
Radiusslider to theR(Radius) input of theCirclecomponent.
Now, as you manipulate the sliders, you have precise, bounded control over the circle's position and size.
Alternative Input Methods
While the Number Slider is versatile, Grasshopper offers other input components for different needs.
The Panel: For Static Data
The Panel is a simple text-based input. It's useful for defining fixed values that don't need interactive adjustment, or for inputting lists of numbers.
An Introduction to Grasshopper – Brendan Harmon
This section from Brendan Harmon's guide demonstrates using a Panel as an alternative to sliders for defining a point.
Read the short section that begins after the first image, using a Panel. Notice how you can type coordinates directly into the panel to define a point. This is useful for constants in your script, such as a fixed height or a specific grid dimension.
The Boolean Toggle: A Digital Switch
Many design decisions are binary: on or off, open or closed, true or false. For this, we use a Boolean Toggle.
An Introduction to Grasshopper – Brendan Harmon
This section provides a clear example of using a Boolean Toggle to control a geometric property.
In the "Polylines" section, find the paragraph describing how to close a polyline. Focus on the part that mentions the Boolean Toggle, using the toggle. Recreate this simple definition: connect a few points to a Polyline component and use a Boolean Toggle (found under Params > Input) to control its Closed input. Double-clicking the toggle switches its value.
A Gallery of Inputs
Grasshopper provides a variety of other input objects for different interaction styles. You can find them under the Params > Input tab.

The image above shows a few alternatives. While we won't detail each one, the MD Slider (Multi-dimensional Slider) is worth noting. It provides a 2D input area, making it perfect for controlling an (X, Y) coordinate pair with a single component, which can be more intuitive than using two separate sliders.
Practical Application: Data Transformation
Often, the data from an input component isn't in the exact format needed by a geometry component. This requires a transformation. Your background in mathematics and physics has certainly familiarized you with the need for unit conversion, and the principle here is identical.
Let's build a parametric arc.
- Place an
Arccomponent on the canvas (choose the one that takes aPlane,Radius, andAngle). - Create the base plane just as you did for the circle: use two
Number Slidersand aConstruct Pointcomponent to define the arc's center. Connect the point to theP(Plane) input. - Add a
Number Sliderfor theR(Radius) input.
Now, look at the A (Angle) input. If you hover over it, the tooltip reveals it expects an "Angle in radians." A user, however, thinks in degrees. If we create a slider from 0 to 360, how do we convert its output to the format the Arc component needs?
We use a conversion component.
4. Go to the Maths > Trig tab and place a Radians component on the canvas. This component takes one input, an angle in degrees, and outputs the equivalent angle in radians.
5. Create a final Number Slider named Angle (Degrees) with a range from 0 to 360.
6. Connect this slider's output to the Degrees input of the Radians component.
7. Connect the Radians output of the Radians component to the A (Angle) input of the Arc.
You now have an intuitive setup where you control the arc's angle in degrees, while Grasshopper handles the necessary mathematical conversion behind the scenes. This chain—Slider (Degrees) -> Radians -> Arc—is a classic example of the data flow and transformation inherent to parametric modeling.
Conclusion
In this lesson, we moved beyond a basic familiarity with inputs and learned to use them with precision and intent. You are now equipped to create the parametric "dials and knobs" that drive your designs.
Key takeaways from our session:
- The
Number Slideris a powerful tool for interactive control, and its behavior can be precisely defined by setting its name, type (integer, float), and domain (min/max). - Grasshopper offers various input components for different purposes, including the
Panelfor static data and theBoolean Togglefor binary choices. - Data from an input often needs to be transformed into the format required by a subsequent component, as we saw when converting degrees to radians for the
Arccomponent.
We have established how to provide controlled inputs to our system. In the next lesson, we will focus on what we do with those inputs. We will explore the creation and manipulation of the fundamental geometric building blocks in Grasshopper: points, vectors, and planes. This will empower you to construct the foundational coordinate systems and directional logic for any complex form.