Edit the duration of text expression after effects
hi I want to decrees the duration of my text animation with this expression I’ve tried edit the '' framDuration*2 '' I’ve set it to ‘’ framDuration*1 ‘’ it worked but it only decreased from 2s to 1s I want it to decrees bellow 1 second something like 15 frame or 10 frames
freq = 1;
decay = 6;
duration = 0.25;
retard = (textTotal-textIndex)*thisComp.frameDuration*2;
t = time - (inPoint + retard);
startVal = [100,100,100];endVal = [0,0,0];
if (t < duration){
linear(t,0,duration,startVal,endVal);
}else{
amp = (endVal - startVal)/duration;
w = freq*Math.PI*2;
endVal + amp*(Math.sin((t-duration)*w)/Math.exp(decay*(t-duration))/w);}
