Stepped Waves Grasshopper pattern: vertical strips stepping sideways in a wave

Stepped Waves

Vertical slat wave pattern

Vertical strips that shift sideways in a stepped wave, so the gaps between them open and close down the panel. A simple way to give a slatted screen or vertical fin façade a sense of movement.

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 strips are cut from. The strips run along its V direction. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of strips across the surface. More divisions means narrower strips.26
Wave HeightHow far each line swings sideways, as a percentage of the spacing between strips.55
Wave frequencyThe spacing of the steps along each line, as a share of its length. Higher values give fewer, longer steps.18.5
Wave irregularityHow far each step is shifted at random along the line. At 0 every step is evenly spaced.100
Wave AngleThe slope of each sideways shift, measured from the strip direction. At 90 the shifts are square steps; lower values give long, gentle slopes.45

Also try: change the seed (S) of the first Random in the irregularity group to get a different random arrangement of steps.

Notes

  • Wave Height follows the strip spacing. It’s a percentage of the gap between neighbouring strips, so when you add Divisions the swing gets smaller along with the strips. Near the top of its range, strips almost pinch shut where two neighbouring lines swing toward each other.
  • You get two sets of strips. The two Geometry parameters at the end hold alternating strips, so you can bake or colour each set on its own.

Design Logic

How the script builds the pattern, step by step.

Stepped Waves Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Measure the strip spacingDivide Surface makes a row of points along the bottom and top edges. Flip Matrix, List Item and Distance measure the gap between neighbouring points, and an Expression takes Wave Height as a percentage of it. That’s how far the lines swing sideways.
2. Draw a line between each pair of stripsNurbs Curve draws a straight line along each column of points. Relative Item pairs each line with its neighbour and Tween Curve draws a line halfway between them. These are the lines the waves follow.
3. Mark the steps, out of step on every other lineLength and two Expression components turn Wave frequency into a step spacing. Divide Length places a point at every step. Dispatch and Tree Branch pick every other line, and Extend Curve shifts its start by half a step, so neighbouring lines step at different heights.
4. Make the rhythm irregularConstruct Domain builds a range from Wave irregularity and Random picks a value for every point, with a different seed for each line. Amplitude and Move slide each point that far along its line.
5. Draw the sloped shiftsLine SDL draws a short line from each point along the strip. Rotate turns it by Wave Angle, alternating left and right using Duplicate Data, Shortest List and Multiplication. Extend Curve lengthens it backwards so it’s centred on the point. An Expression sets the length so each slope spans exactly the Wave Height.
6. Link the slopes into a stepped lineDispatch, Flip Curve and Weave flip every other slope so their ends line up. End Points, Relative Item and Line connect the ends of neighbouring slopes, and Cull Pattern keeps the connections on alternating sides. Join Curves joins everything into one stepped line per strip.
7. Run each line to the edgesCurve Closest Point finds the nearest point on the top and bottom edges, Sort List and List Item pick the closer one, and Line extends each end to it. Trim with Region keeps what lies inside the surface.
8. Cut the surface into stripsSurface Split cuts the surface along the stepped lines. Area and Sort Along Curve put the pieces in order across the surface, and Dispatch splits them into two alternating sets.

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 →