Loose Threads Grasshopper pattern: gently wobbling vertical lines

Loose Threads

Wavy vertical line pattern

Vertical lines that wobble gently, like loose threads hanging side by side.

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 threads hang on. It must be a planar (flat) surface. The threads run in its V direction.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of threads across the surface. The two edges get no thread, so you get one fewer thread than the number of divisions.20
Step Lengths 1
Step Lengths 2
Step Lengths 3
Three step sizes, each as a percentage of the thread length. The points that shape each thread are spaced by a shuffled mix of these steps.7
11
12
Wave Frequency ScaleScales all three steps at once. Higher values mean longer steps, so fewer, longer wobbles along each thread.1.24
% of movement up to neighborHow far the points can be pushed sideways, as a percentage of half the gap to the next thread. At 0 the threads stay straight.82
WidthThe width of every thread.0.09

Also try: turn on the preview of the last Cull Pattern, next to the Loft. It fills every second gap between neighbouring threads, which gives a striped version of the pattern.

Notes

  • Keep % of movement up to neighbor below 100 if the threads must stay apart. At 100 two neighbouring threads can each move halfway toward the other and touch.
  • For a calmer or wilder look, bring the three step lengths closer together for an even rhythm, or spread them apart for a more irregular one.
  • Change the Seed of the Jitter and Random components to get a different random arrangement with the same settings.
  • Balance Divisions and Width. With many threads and a large width, neighbouring threads overlap where they wobble toward each other.

Design Logic

How the script builds the pattern, step by step.

Loose Threads Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Draw straight threadsDivide Surface makes rows of points across the surface. Flip Matrix and Cull Index remove the points on the two edges, and after a second Flip Matrix, Nurbs Curve joins the rest into straight lines.
2. Measure the gap between threadsFlip Matrix and List Item take two neighbouring points. Distance gives the gap between threads, and Line gives the sideways direction.
3. Make an irregular rhythmLength measures each thread, and three Expression components turn Step Lengths 1, 2 and 3 into lengths. Duplicate Data repeats them, Multiplication scales them by Wave Frequency Scale, and Jitter shuffles their order. Mass Addition adds them up into running distances along the thread.
4. Place points along each threadEvaluate Length finds the points at those distances. Bounds and Remap Numbers stretch them so they run the full length of the thread, Evaluate Curve places them, and Clean Tree removes empty results.
5. Push every second point sidewaysDispatch picks every second point. An Expression turns % of movement up to neighbor into a maximum distance, and Construct Domain and Random give each point a random amount between minus and plus that distance. Amplitude and Move shift the points sideways.
6. Redraw the threads as smooth curvesWeave puts the moved and unmoved points back in order, and Interpolate draws a smooth curve through them.
7. Give the threads their widthEvaluate Surface gives the plane of the surface. Two Offset Curve components move each curve by half of Width to either side, End Points and Line close the ends, and Join Curves joins them into an outline that becomes a flat surface.

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 →