Wavy Ribbons Grasshopper pattern: horizontal wavy ribbons with varying gaps

Wavy Ribbons

Wavy ribbon pattern

Horizontal ribbons that wave up and down by random amounts, so the gaps between them widen and narrow across the surface.

Want all 53 patterns? Get them in one zip →


Price

Free

Plugins

None, native components only

Works with

Rhino 7 & 8, Mac and Windows

Level

Beginner

Inputs

Reference in Rhino

Surface

The surface the ribbons run across. The ribbons start from straight lines between two opposite edges, so a rectangle works best. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsSets the number of ribbons, which is one less than this value.22
Ribbon ThicknessThe thickness of every ribbon, in thousandths of the surface height. It’s the same along the whole ribbon.26
Number of WavesHow many sections each ribbon is split into. Every division point moves up or down at random, so more sections give more, shorter waves.10
Wave AmountHow far the ribbons can move up and down, as a percentage of the most they can move without hitting their neighbours. At 0 the ribbons are straight.100

Also try: change the seed of the first Random component in the Move Up and Down group. Every ribbon gets new random heights.

Notes

  • The gaps do the waving. Every ribbon keeps the same thickness. Because each ribbon moves on its own, the gaps between them widen and narrow along the ribbons.
  • Keep Wave Amount below 100 to keep a gap. At 100, two neighbouring ribbons that move toward each other can just touch.
  • The ribbons aren’t trimmed to the surface. Their ends are closed with straight lines at the side edges, so where a ribbon meets the edge at an angle its ends can stick out a little. Trim them after baking if you need a clean outline.

Design Logic

How the script builds the pattern, step by step.

Wavy Ribbons Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Draw the row linesDivide Surface places points down both sides of the surface. Cull Index drops the first and last points, so no ribbon runs along the top or bottom edge and swings far past the surface. Flip Matrix and Nurbs Curve join each pair into a line across.
2. Set the ribbon thicknessNurbs Curve, List Item and Length measure the height of the surface, and an Expression turns Ribbon Thickness into a distance.
3. Mark the wave pointsDivide Curve splits each row line into Number of Waves equal parts.
4. Work out how far a ribbon can moveCurve Middle and Curve Closest Point measure the gap between two row lines. Division halves the ribbon thickness, and an Expression takes half the gap, subtracts that half thickness and scales the result by Wave Amount.
5. Move the points up and down at randomConstruct Domain builds a range from that distance up to the same distance down. Random picks a height for every point, with a different seed for every ribbon, and Amplitude and Move shift the points. Interpolate draws a smooth curve through them.
6. Thicken the curves into ribbonsTwo Offset Curve components copy each curve up and down by half the ribbon thickness, in the plane that Evaluate Surface takes from the surface. End Points, Line and Join Curves close each pair into an outline, and Surface fills it.

Want to learn how to build scripts like this on your own? Check out the Grasshopper Pro course.

On this page

Related tutorial

Free to use, also commercially

Use and change this script in your own projects, personal or commercial.

Please don't re-upload or redistribute the file. If you share it, link to this page so people always get the latest version.

© Hopific

Something not working?

If a script throws an error or doesn't do what this page describes, tell me and I'll fix it.

Tell me →