Hi all,
In this post David Bachman figured out how to achieve differential growth without scripting by looping Kangaroo trough Anemone.
He only uses a couple lines of python “to split line segments that get too long. That could have been done with only Grasshopper components, but doing it in Python was just too easy.”
I don’t speak any Python - nor any other code - and I can’t figure out what this code does exactly. Would anybody be so kind as to “translate” it to the respective grasshopper components?
This is the script - it’s also in the attached .gh file
import rhinoscriptsyntax as rs
increment = 0.01
splitLength = 2.0
l=
for i in range(len(Lines)):
L=Lines[i]
if rs.CurveLength(L)> splitLength:
l.append(rs.AddLine(rs.CurveStartPoint(L),rs.CurveMidPoint(L)))
l.append(rs.AddLine(rs.CurveMidPoint(L),rs.CurveEndPoint(L)))
else:
l.append(L)
DifferentialGrowth.gh (14.6 KB)



