PDA

View Full Version : Making objects "grow"


vNicolef
10-22-2008, 10:14 AM
Hi there,

I'm trying to place a mole on an avatar's face so that over time you can see the mole gradually grow bigger. Would this be done with an animation or a timing function?

farshizzo
10-22-2008, 05:54 PM
If the mole is a 3d object, then you can use the vizact.size action to make the object gradually bigger. For example the following code will make the mole object grow to 3x its size over 10 seconds:mole.addAction( vizact.size([3,3,3],10,viz.TIME) )

vNicolef
11-06-2008, 03:15 PM
Thanks, that helps a lot. Is it possible to kill this action if I want it to stop prematurely?

vNicolef
11-06-2008, 03:33 PM
Nevermind... I figured it out. Thanks!