Slanted Ladders Grasshopper pattern: vertical rails joined by slanted rungs

Slanted Ladders

Ladder line pattern

Vertical rails joined by short slanted rungs at staggered heights, like ladders set 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 ladders are built on. The rails run in its V direction. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of ladders across the surface. There is a rail on each edge and between every two ladders.20
Spacing of Diagonals as % of Surface HeightSets the rung spacing. Rungs in one ladder are twice this value apart, and neighbouring ladders are shifted by this value, so their rungs stagger.11.6
Irregularity AmountHow far each rung slides up or down at random, as a percentage of the spacing. At 0 the rungs are perfectly regular.51.5
Diagonal AngleThe angle in degrees between the rungs and the rails. At 90 the rungs are straight across.58
Rail Thickness
Connector Thickness
Half the width of the rails and of the rungs.0.044
0.069

Also try: the rungs slant one way or the other because Diagonal Angle is multiplied by a random 1 or -1, picked by a List Item. Change the -1 to 1 to make every rung slant the same way.

Notes

  • The script gives two results: the rails and the rungs. The rungs are trimmed to end exactly at the edges of the rails, so the two sets meet without overlapping.
  • The outer rails sit on the edges of the surface, so half of their width lies outside it. Trim them if the result has to stay within the surface.
  • Rail Thickness and Connector Thickness are real distances. Scale them to your surface, and keep the rungs well thinner than the gap between them so the ladders stay open.

Design Logic

How the script builds the pattern, step by step.

Slanted Ladders Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Draw the rail linesDivide Surface makes a grid of points, Divisions across and one division in V, and Nurbs Curve joins each pair into a straight line across the surface. Flip Matrix, List Item and Distance measure the gap between two rails.
2. Draw a centre line in each ladderRelative Item pairs each rail with the next one. Tween Curve draws a line halfway between them, and Loft makes the strip between them for trimming later.
3. Place staggered rung pointsLength and two Expression components turn the spacing percentage into distances. Tree Statistics, Dispatch and Tree Branch pick every other ladder, and Extend Curve shortens its centre line at the start by one spacing. Divide Length then places points along every centre line, so the points in neighbouring ladders are offset.
4. Shake the pointsConstruct Domain sets a range from Irregularity Amount. Random picks a value for each point, and Amplitude and Move slide it along the centre line.
5. Draw slanted rungsAn Expression with Radians works out how long a rung must be to cross the ladder at Diagonal Angle. Line SDL draws it from each point along the centre line, and Construct Plane gives the plane to turn in. Random, List Item and Multiplication multiply Diagonal Angle by a random 1 or -1, and Rotate turns the rung by the result, so it slants one way or the other. Extend Curve extends each rung backwards so it is centred on its point.
6. Thicken the rails and rungsOffset Curve copies each rail and each rung to both sides by Rail Thickness or Connector Thickness. End Points, Line and Join Curves close the copies into rectangles.
7. Fit the rungs between the railsOffset Curve shrinks each lofted strip by Rail Thickness, and Region Intersection trims the rungs to it, so they end exactly at the edges of the rails.

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 →