import rhinoscriptsyntax as rs import random as ran import fantastic_stairs_lib as fs # Delete all objects in the scene allobjs = rs.AllObjects() rs.DeleteObjects(allobjs) rs.EnableRedraw(False) curve = rs.AddSpiral([0,0,0], [0,0,10], 4, 10, 9) len_c = rs.CurveLength(curve) tothgt = len_c*0.1 fs.make_curved_ramp(curve, tothgt/40) module = 1 length_fromstart = module while length_fromstart < len_c: point = rs.CurveArcLengthPoint(curve, length_fromstart) m_l = rs.AddLine(point,[point[0], point[1], length_fromstart*0.06-fs.thick/2]) rs.AddPipe(m_l, 0, 0.5) length_fromstart +=module rs.EnableRedraw(True)