import rhinoscriptsyntax as rs import random as rd ####################curves coords = [] anzahl = 10 xVal = 1 yVal = 3 zVal = 5 for i in range (anzahl): for j in range(anzahl): for k in range(anzahl): x = i*xVal if i > anzahl*-0.5: x = x+10 y = j*xVal if j > anzahl*-0.5: y = y+10 z = k*xVal if k > anzahl*-0.5: z = z+10 cor = [x, y, z,] coords.append(cor) curves = rs.AddCurve( coords ) rs.ObjectColor(curves, [64,224,208]) ####################points coords = [] anzahl = 8 xVal = 2 yVal = 4 zVal = 6 for i in range (anzahl): for j in range(anzahl): for k in range(anzahl): x = i*xVal if i > anzahl*0.1: x = x*1 y = j*xVal if j > anzahl*0.1: y = y*1 z = k*xVal if k > anzahl*0.1: z = z*1 cor = [x, y, z,] coords.append(cor) points = rs.AddPoints( coords ) rs.ObjectColor(points, [134,1,175]) for point in points [0:200]: rs.ObjectColor(points, [134,1,175])