Dissolving Layers Grasshopper pattern: horizontal bands of fine vertical lines with varying density

Dissolving Layers

Random vertical line pattern

Horizontal bands of fine vertical lines in varying densities, with some layers almost solid and others breaking apart into gaps.

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 layers are stacked on, along its V direction. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of layers.8
Relative Spacing Min
Relative Spacing Max
The range for the spacing between lines. Each layer gets its own random spacing in this range, in thousandths of the surface width.4
8
Min Attractor Count
Max Attractor Count
The range for the number of random attractor points on each layer. The gaps open around these points.2
3
Amount to keep (%)The percentage of lines kept in each layer. The lines nearest the attractor points are removed.70
Randomness StrengthHow ragged the edges of the gaps are. At 0 the lines nearest each attractor point are removed in a clean run; higher values scatter the gaps.0.36

Also try: change the seed (S) of the Random components to get a different mix of densities and attractor positions.

Notes

  • The line width is tied to Relative Spacing Min. Every line is half as wide as the smallest spacing, so the lines never touch. Raise Relative Spacing Min for thicker lines.
  • The gaps open around the attractor points. Each layer loses the lines nearest its attractor points, so with more attractor points the missing lines split into more, smaller gaps.
  • For a more solid look, raise Amount to keep (%) and lower Relative Spacing Max. For layers that almost fall apart, lower Amount to keep (%) and raise the attractor counts.

Design Logic

How the script builds the pattern, step by step.

Dissolving Layers Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Split the surface into layersDivide Surface makes two columns of points up the surface. Cull Index drops the top row, and Flip Matrix and Nurbs Curve draw a line across the bottom of each layer.
2. Measure the surfaceList Item, Distance and Line measure the surface width and the layer height, and give the directions across and up the surface.
3. Give every layer its own line spacingAn Expression turns the two spacing sliders into distances. Tree Statistics counts the layers, and Construct Domain and Random pick one spacing per layer. Divide Length places a point at that spacing along each layer’s line.
4. Place random attractor points on each layerConstruct Domain turns the two attractor count sliders into a range. Two Random components pick how many attractor points each layer gets and a seed for each layer, and Populate Geometry places that many random points on each layer’s line.
5. Remove the lines nearest the attractorsClosest Point measures how far each point is from the nearest attractor point, and Sort List puts the points in order, furthest first. Jitter shuffles the order a little, and List Length, an Expression and Sub List keep the first share of points set by Amount to keep (%).
6. Draw the linesLine SDL draws a line up from each remaining point, as tall as the layer. Amplitude and Extrude give each line its width.

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 →