 | Creating a explosion effect with expression
on Sep 19, 2012 at 6:11:34 pm |
Hello All,
I wanting to create an explosion effect or look by using expression rather than key frames. I have a comp with 12 different layers that make up a webpage. What Im wanting to do is have the layers in there starting position, then explode outwards or (seperate from each other) in different directions randomly through x,y,z space as well as the x,y rotation, plus having as much control over the whole animation. Hopefully I'm not asking for to much here. It would be something similar to the text explosion preset that comes with Ae Hopefully that makes sense...
Muchos Thank You's
 | Re: Creating a explosion effect with expression on Sep 19, 2012 at 6:24:50 pm |
 | Re: Creating a explosion effect with expression on Sep 19, 2012 at 7:38:48 pm |
Yes! This is amazing. I have one question. The animation is prefect its just the timing, right now the animation starts at the first frame. is there any way to delay the animation so that it begins at 1 sec on the timeline? Thanks again Dan... your my hero and an inspiration to me.
Muchos Thank You's
 | Re: Creating a explosion effect with expression on Sep 19, 2012 at 10:00:58 pm |
Edit: oops--I forgot to use the "Code" tags. Updated below:
I think you just need to change the birth/life expression on the Point Control. This has everything start at the layer's in point:
lmin = 1.5; //minimum particle life
lmax = 2.5; //maximum particle life
i=1;
seed_random(i,true);
delay=random(lmax);
birth=delay;
death=delay;
t = time - inPoint;
if(t < delay){
[0,0]
}else{
while (t >= death){
i += 1;
seed_random(i,true);
birth=death;
life=random(lmin,lmax);
death += life;
}
[birth,life]
}
This one starts at a specific time (specified by tStart):
lmin = 1.5; //minimum particle life
lmax = 2.5; //maximum particle life
tStart = 1; // start at one second
i=1;
seed_random(i,true);
delay=random(lmax);
birth=delay;
death=delay;
t = time - tStart;
if(t<delay){
[0,0]
}else{
while (t >= death){
i += 1;
seed_random(i,true);
birth=death;
life=random(lmin,lmax);
death += life;
}
[birth,life]
}
Dan