Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Edit the duration of text expression after effects

Community Beginner ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

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

Views

31

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

 

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

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