-
Random Scale Up (for multiple objects)
hi,
i need to write an expression that will scale up an object (to 21% in this case) at a random time between 2 and 5 seconds. (so i can use it many times)
the expression below does that but it keeps moving the scale after it’s reached 21% but i want it to stop when it’s reached it’s max scale.
how do i do this?
thanks for you’re help.
max_scale=21; //maximum scale
smax=5; //scale ramp-up time
smin=2;
s=random(smin,smax);life=effect(“life”).param(“Point”)[1];
age=time-effect(“life”).param(“Point”)[0]; //age=time-birth
if (age(that might be quite messy code?!)