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

Text Expression Question

New Here ,
Jun 16, 2018 Jun 16, 2018

Copy link to clipboard

Copied

I came across this expression under the expression selector under a text layer and when I start offsetting scale, rotation and tracking amount, it has a sort of bouncing effect. I can't figure out how this works (what these lines mean) and would like to learn about this. Any help is greatly appreciated! Thanks!

freq = 2;

decay = 6;

duration = 0.12;

retard = textIndex*thisComp.frameDuration*1;

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

Views

1.8K

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
Guide ,
Jun 16, 2018 Jun 16, 2018

Copy link to clipboard

Copied

Here's a link to my video tutorial course on learning expressions for After Effects. I recommend that you do this course to learn how to use expressions before tackling this 🙂

Learning After Effects Expressions

Votes

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
New Here ,
Jun 16, 2018 Jun 16, 2018

Copy link to clipboard

Copied

Would it be possible for you to explain briefly here? I just want to know the algorithm of this expression, don't need to be really detailed. Thanks!

Votes

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
LEGEND ,
Jun 17, 2018 Jun 17, 2018

Copy link to clipboard

Copied

It's a simple sine wave modulated through an additional exponential falloff. Aside from that there seems little point in explaining expressions if you have zero knowledge about basics of JavaScript. That's like talking to a blind man about the sun.

Mylenium

Votes

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
New Here ,
Apr 05, 2020 Apr 05, 2020

Copy link to clipboard

Copied

Hi I want the Persian text to be from right to left, but this program is defined for English, please help me

 

freq = 1;
decay = 5;
duration = 0.1;

retard = textIndex*thisComp.frameDuration*1;
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);
}

Votes

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
Guide ,
Apr 07, 2020 Apr 07, 2020

Copy link to clipboard

Copied

LATEST

Have you tried this?;

 

Arabic Text script

Votes

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