Hi, I am stuck and hoping someone can help please…
I have successfully generated circles with random radii from a list of points and I am trying to then get random lengths of extrusions from the collection of circles. I can only seem to get one random extrusion to all the circles…clearly my last two lines are not correct…
for i in range(len(ptList)):
#generate random integer within a range - use as radius
radius = rnd.randint(1,3)
#create circle using random value as radius
rs.AddCircle(ptList[i], radius)
#works up to this line but the following only gives me one random extrusion for all the circles…
rs.Command(“SelCrv”)
rs.Command(“ExtrudeCrv”,rnd.randint(10,30))
3 posts - 2 participants