import rhinoscriptsyntax as rs import random rs.EnableRedraw(0) ObjAll=rs.AllObjects() rs.DeleteObjects(ObjAll) ################ coords=[] Anzahl=10 #just the name for the quantity of the loop (for) repetition xVal=1 #just has to be higher than 0 but not yVal=1# val=value zVal=1 for i in range(Anzahl): #the : means that the befehl will continue lie a , on a satz for j in range(Anzahl): for k in range(Anzahl):# i j and k are norm und in er reihenfolge geschrieben x=i*xVal if i> Anzahl*0.5: x=+10 y=j*yVal if i> Anzahl*0.2: y=+20 z=k*zVal cor=[x,y,z] coords.append(cor) #the values and numbres in cor(im Klammer) gets added to the coords liste (nicht im Klammer) points= rs.AddPoints(coords)#all stuff before was ust for making the raum for the points and here u add the points #if the simulation is satarted rn ull get a cube with perfectly allygned point (10 in jeder richtung) random.shuffle(coords) rs.AddCurve(coords,1)