I’m working on a script to create a bunch of spheres. My aim is to create about 10.000 or more. The way I am creating this spheres is this:
esfera = bpy.ops.mesh.primitive_ico_sphere_add ballna=[None]*Nball #here I create the object ball for i in range(0,Nball): #this conditional checks how long does it take to create the balls if i/50==int(i/50): print('ball',i,"time", clock()) #here I create the object icosphere esfera(subdivisions=2,size=r0, location=(0,0,0)) #finally I save the icosphere in the object ballna for further operations ballna[i] = bpy.context.object
The problem I have has to do with time. I have noticed that it takes more to create the last 50 spheres than the 50 first ones.
Is this something connected with the way Blender works or am I doing something wrong?