Shaky Sticks Grasshopper pattern: rows of sticks with random tilts

Shaky Sticks

Irregular stick pattern

Rows of vertical sticks with slightly random spacing and angles, split by tilted row lines, giving the panel a hand-made, irregular rhythm.

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 sticks are built on. The rows are stacked in its V direction. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of rows of sticks stacked up the surface.7
Shift MultiplierHow much the lines between rows tilt. Each end moves up or down at random, by up to this share of the row height in total.0.71
Number of Elements per RowHow many sticks fill each row. Each row gets one more stick than this value.22
Amount of Element MovementHow far each end of a stick slides sideways at random, as a share of the stick spacing. Higher values give uneven spacing and more tilted sticks.0.62
Element ThicknessThe width of every stick. It is the same for all sticks.0.17

Also try: change the seed (S) of the Random components that have one set to 2 for a different shake.

Notes

  • The top and bottom edges stay straight. The script keeps the first and last row lines untilted, so the surface has a clean finish.
  • The irregular look comes from position, not width. All sticks have the same thickness; they look uneven because their ends slide at random and they are cut at a slant where the rows meet.
  • Element Thickness is a real distance. Scale it to your surface. If Element Thickness gets close to the stick spacing, neighbouring sticks will merge.
  • The script gives two results: the trimmed sticks and the outlines of the rows. Bake the outlines too if you want to keep the row lines.

Design Logic

How the script builds the pattern, step by step.

Shaky Sticks 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 rowsDivide Surface places points along both sides of the surface, Divisions rows apart. Flip Matrix pairs them up across the surface, and List Item, Line and Length find the direction and height of a row.
2. Tilt the lines between rowsMultiplication and Construct Domain set a range from Shift Multiplier and the row height. Random picks a shift for each end of each line. Tree Statistics, Tree Branch and Replace Items set the shifts of the first and last line to 0. Amplitude and Move shift the ends, and Nurbs Curve redraws the tilted lines.
3. Pair neighbouring lines into rowsShift List pairs each line with the next one. Loft makes the outline of each row from its pair, to trim with later.
4. Place the stick endsDivide Curve places points evenly along both lines of each row. Length and an Expression give the spacing, and Random, Amplitude and Move slide every point along its line by a random amount within Amount of Element Movement.
5. Connect the ends into sticksRelative Item matches each point with the same point on the other line of the row, and Line joins them. Extend Curve lengthens each stick at both ends by End Extension so the trim is clean.
6. Give the sticks their thicknessOffset Curve copies each stick to both sides by half of Element Thickness. End Points, Line and Join Curves close the copies into a rectangle.
7. Trim the sticks to their rowTree Statistics, Deconstruct Path and List Item find the outline of each row, and Region Intersection keeps only the part of each stick inside 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 →