import fantastic_stairs_lib as fs import rhinoscriptsyntax as rs import random as ran reload(fs) rs.DeleteObjects(rs.AllObjects()) rs.EnableRedraw(False) # Spiral curve =rs.AddSpiral([0,0,0],[0,0,1], 0, turns= 10, radius0= 3, radius1= 15) len_c= rs.CurveLength(curve) An=0 P=5 mods = (len_c+An) / (P*fs.tt+fs.pod_l + fs.tt) steps = int(mods*P)+1 # Columns fs.make_curved_podeststair(curve, steps=steps, pod_l=fs.pod_l, DC=steps + 1, P=P, An=An) i = 1 len_start = An + P * fs.tt + fs.pod_l/2 while (len_start <= len_c): point = rs.CurveArcLengthPoint(curve, len_start) m_l = rs.AddLine(point, [point[0], point[1], i * P * fs.th - fs.thick]) rs.AddPipe(m_l, 0, 0.2) i = i+1 len_start += P*fs.tt + fs.pod_l + fs.tt rs.DeleteObject(m_l) rs.EnableRedraw(True)