I have a little problem :) I need to do a program in python , blender , in wich i must built a structure of many cubes. i am a absolutely beginner , and i have no experience in python. I realize a functional program in python and i succeded to built the structure , but i don't know how to make a mini-movie in which i would see how really my structure construct itself. this is the program i have made :
import bpy
for i in range(6):
for x in range(-i,i+1):
for y in range(-i,i+1):
for z in range(-i,i+1):
if(x<0):
xx=-x
else:
xx=x
if(y<0):
yy=-y
else:
yy=y
if(z<0):
zz=-z
else:
zz=z
if(xx+yy+zz==i):
bpy.ops.mesh.primitive_cube_add(radius=0.5,location=(x,y,z))
That is all.. I have been looking for a tutorial for more than a mouth , and i can't see one who would be useful for my program . Help meeee!!!
sleep()
wont work, but if you want to see this code running in 3dview in realtime then the above link shows a few approaches. it's not exactly clear what you want to produce as an outcome. Please elaborate. $\endgroup$