PDA

View Full Version : Animate


roobert
07-28-2014, 11:06 AM
I have a sphere and I would like to grow little by little. It is my code, but the sphere appears with the final size.

es=viz.add('model/sphere.dae',pos=[0,0,0],scale=[0.5,0.5,0.5])
es.collideSphere()
for i in range (10):
es.setScale(i,i,i)
time.sleep(1)

How do I grow so slowly???
:confused::confused::confused:

Jeff
07-28-2014, 09:18 PM
Take a look at the vizact.sizeTo (http://docs.worldviz.com/vizard/#commands/vizact/sizeTo.htm) command.

roobert
07-29-2014, 07:16 AM
Hi Jeff.

Thanks for your help, it was exactly what I wanted