Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Edit the duration of text expression after effects

Community Beginner ,
Aug 25, 2021 Aug 25, 2021

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);}

TOPICS
How to
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 25, 2021 Aug 25, 2021

I'm not clear what you are saying here. You would simply modify the already defined "duration" value, which is in seconds. Everything else would only accelerate the actual bouncing or put more dampening on the expression.

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 25, 2021 Aug 25, 2021

i've already done that but it dosen't work it seems like it change the scale or the overshot of the characters 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 25, 2021 Aug 25, 2021

but it dosen't change the full duration of the animation 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 25, 2021 Aug 25, 2021
LATEST

Change

duration = 0.25;

to

duration = 15 * thisComp.frameDuration;

 

That will make duration count frames instead of seconds. 

 

What property are you adding this expression to? I'm not exactly sure what you are trying to accomplish because the expression basically moves a 3D position property from 100, 100, 100 to 0, 0, 0, and adds a bounce but it throws an error if added to Transform/Position which is the only 3 Axis array possible on a text layer without an effect applied.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines