WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Animate (https://forum.worldviz.com/showthread.php?t=5114)

roobert 07-28-2014 11:06 AM

Animate
 
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 command.

roobert 07-29-2014 07:16 AM

Hi Jeff.

Thanks for your help, it was exactly what I wanted


All times are GMT -7. The time now is 02:10 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC