torsdag den 4. februar 2010

AE - Particels - emit with markers

p = 9999; //number of particles to emit
fo = 7; //falloff time for emitting particles (in frames)
//(*falloff values less than 2 don't seem to emit any particles*)

//////////////////////////////////////////////////

m = thisComp.marker;
inx = 1;
tf = framesToTime(fo);

t = m.nearestKey(time).time;
inx = m.nearestKey(time).index;
inx = (time > t )? inx : inx -1;

if ( inx < 1){
0
}else{
t = m.key(inx).time;
tf = t + tf;
linear ( time, t , tf, p, 0)
}
AE POSTWORK blog is virtually just a notepad, where I put all the AE expressions up I finde and use, its so I can easily get to them wherever I am and no matter what computer I sit at. I do not write my own expressions, so all expressions on the page is downloaded from the web,or modify versions i found. and tutorials etc.. I will try to credit those who have made expressions if I can.

Now, with tips and tricks for AE & C4D.
No more forgetting the little tricks and tips I found on my road with After Effects, etc.

Sebabba