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

Error Couldnt turn result into numeric value. After Effects error Using Text Animator Extension

Community Beginner ,
Jul 02, 2021 Jul 02, 2021

I jsut want to put the animations on one word but all of them give me the same 4 errors:

Why?

 

------------------------

$MarkerName = 'Intro';
$PresetName = 'TP_Blur 02_In_N-xWx';

///------------------------------------------------------------------------
timeOffset=30;
overShoot = 0;
Start = 0;
End = 72;
Ease = 9;
RTL = 0;
/////---------------Eases refrence on: http://easings.net/
///------------------------------------------------------------------------

Amount = effect($PresetName)("Amount");Marker = thisLayer.marker.key($MarkerName).time;mDur = Marker + thisLayer.marker.key($MarkerName).duration;lenght = mDur - Marker;str = (lenght * Start) / 100;end = (lenght * (100 - End)) / 100;b = 0;d = 1;c = 100;t = linear(time, Marker + str, mDur - end, 0, 1);if (Ease == 2) { T = c*(t/=d)*t + b;} else if (Ease == 3) { T = -c *(t/=d)*(t-2) + b;} else if (Ease == 4) { if ((t/=d/2) < 1) { T = c/2*t*t + b; } else { T = -c/2 * ((--t)*(t-2) - 1) + b; }} else if (Ease == 5) { T = c*(t/=d)*t*t + b;} else if (Ease == 6) { T = c*((t=t/d-1)*t*t + 1) + b;} else if (Ease == 7) { if ((t/=d/2) < 1) { T = c/2*t*t*t + b; } else { T = c/2*((t-=2)*t*t + 2) + b }} else if (Ease == 8) { T = c*(t/=d)*t*t*t + b;} else if (Ease == 9) { T = -c * ((t=t/d-1)*t*t*t - 1) + b;} else if (Ease == 10) { if ((t/=d/2) < 1) { T = c/2*t*t*t*t + b; } else { T = -c/2 * ((t-=2)*t*t*t - 2) + b; }} else if (Ease == 11) { T = c*(t/=d)*t*t*t*t + b;} else if (Ease == 12) { T = c*((t=t/d-1)*t*t*t*t + 1) + b;} else if (Ease == 13) { if ((t/=d/2) < 1){ T = c/2*t*t*t*t*t + b; } else { T = c/2*((t-=2)*t*t*t*t + 2) + b; }} else if (Ease == 14) { T = -c * Math.cos(t/d * (Math.PI/2)) + c + b;} else if (Ease == 15) { T = c * Math.sin(t/d * (Math.PI/2)) + b;} else if (Ease == 16) { T = -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;} else if (Ease == 17) { T = (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;} else if (Ease == 18) { T = (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;} else if (Ease == 19) { if (t == 0) { T = b; } if (t == d) { T = b + c; } if ((t/=d/2) < 1) { T = c/2 * Math.pow(2, 10 * (t - 1)) + b; } else { T = c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }} else if (Ease == 20) { T = -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;} else if (Ease == 21) { T = c * Math.sqrt(1 - (t=t/d-1)*t) + b;} else if (Ease == 22) { if ((t/=d/2) < 1) { T = -c/2 * (Math.sqrt(1 - t*t) - 1) + b; } else { T = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }} else { T = t * 100;}Duration = linear(T, 0, 100, 0, 100 + (timeOffset * textTotal));if (RTL == 0) { dir = textIndex;} else { dir = textTotal - textIndex;}v = Duration - (timeOffset * dir);anim = (2 * Math.PI * v) / 100;amp = linear(v, 0, 100, Amount, 0);Math.cos(anim * overShoot) * amp;

--

error 2:

$MarkerName = 'Intro';
$PresetName = 'TP_Blur 02_In_N-xWx';

///------------------------------------------------------------------------
timeOffset=30;
overShoot = 1;
Start = 0;
End = 100;
Ease = 1;
RTL = 0;
/////---------------Eases refrence on: http://easings.net/
///------------------------------------------------------------------------

Amount = effect($PresetName)("Amount");Marker = thisLayer.marker.key($MarkerName).time;mDur = Marker + thisLayer.marker.key($MarkerName).duration;lenght = mDur - Marker;str = (lenght * Start) / 100;end = (lenght * (100 - End)) / 100;b = 0;d = 1;c = 100;t = linear(time, Marker + str, mDur - end, 0, 1);if (Ease == 2) { T = c*(t/=d)*t + b;} else if (Ease == 3) { T = -c *(t/=d)*(t-2) + b;} else if (Ease == 4) { if ((t/=d/2) < 1) { T = c/2*t*t + b; } else { T = -c/2 * ((--t)*(t-2) - 1) + b; }} else if (Ease == 5) { T = c*(t/=d)*t*t + b;} else if (Ease == 6) { T = c*((t=t/d-1)*t*t + 1) + b;} else if (Ease == 7) { if ((t/=d/2) < 1) { T = c/2*t*t*t + b; } else { T = c/2*((t-=2)*t*t + 2) + b }} else if (Ease == 8) { T = c*(t/=d)*t*t*t + b;} else if (Ease == 9) { T = -c * ((t=t/d-1)*t*t*t - 1) + b;} else if (Ease == 10) { if ((t/=d/2) < 1) { T = c/2*t*t*t*t + b; } else { T = -c/2 * ((t-=2)*t*t*t - 2) + b; }} else if (Ease == 11) { T = c*(t/=d)*t*t*t*t + b;} else if (Ease == 12) { T = c*((t=t/d-1)*t*t*t*t + 1) + b;} else if (Ease == 13) { if ((t/=d/2) < 1){ T = c/2*t*t*t*t*t + b; } else { T = c/2*((t-=2)*t*t*t*t + 2) + b; }} else if (Ease == 14) { T = -c * Math.cos(t/d * (Math.PI/2)) + c + b;} else if (Ease == 15) { T = c * Math.sin(t/d * (Math.PI/2)) + b;} else if (Ease == 16) { T = -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;} else if (Ease == 17) { T = (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;} else if (Ease == 18) { T = (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;} else if (Ease == 19) { if (t == 0) { T = b; } if (t == d) { T = b + c; } if ((t/=d/2) < 1) { T = c/2 * Math.pow(2, 10 * (t - 1)) + b; } else { T = c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }} else if (Ease == 20) { T = -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;} else if (Ease == 21) { T = c * Math.sqrt(1 - (t=t/d-1)*t) + b;} else if (Ease == 22) { if ((t/=d/2) < 1) { T = -c/2 * (Math.sqrt(1 - t*t) - 1) + b; } else { T = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }} else { T = t * 100;}Duration = linear(T, 0, 100, 0, 100 + (timeOffset * textTotal));if (RTL == 0) { dir = textIndex;} else { dir = textTotal - textIndex;}v = Duration - (timeOffset * dir);anim = (2 * Math.PI * v) / 100;amp = linear(v, 0, 100, Amount, 0);Math.cos(anim * overShoot) * amp;

--

error 3:

$MarkerName = 'Intro';
$PresetName = 'TP_Blur 02_In_N-xWx';

///------------------------------------------------------------------------
timeOffset=5;
overShoot = 2.4;
Start =0
End =100
Ease = 1
RTL = 0;
/////---------------Eases refrence on: http://easings.net/
///------------------------------------------------------------------------

Amount = effect($PresetName)("Amount");Marker = thisLayer.marker.key($MarkerName).time;mDur = Marker + thisLayer.marker.key($MarkerName).duration;lenght = mDur - Marker;str = (lenght * Start) / 100;end = (lenght * (100 - End)) / 100;b = 0;d = 1;c = 100;t = linear(time, Marker + str, mDur - end, 0, 1);if (Ease == 2) { T = c*(t/=d)*t + b;} else if (Ease == 3) { T = -c *(t/=d)*(t-2) + b;} else if (Ease == 4) { if ((t/=d/2) < 1) { T = c/2*t*t + b; } else { T = -c/2 * ((--t)*(t-2) - 1) + b; }} else if (Ease == 5) { T = c*(t/=d)*t*t + b;} else if (Ease == 6) { T = c*((t=t/d-1)*t*t + 1) + b;} else if (Ease == 7) { if ((t/=d/2) < 1) { T = c/2*t*t*t + b; } else { T = c/2*((t-=2)*t*t + 2) + b }} else if (Ease == 8) { T = c*(t/=d)*t*t*t + b;} else if (Ease == 9) { T = -c * ((t=t/d-1)*t*t*t - 1) + b;} else if (Ease == 10) { if ((t/=d/2) < 1) { T = c/2*t*t*t*t + b; } else { T = -c/2 * ((t-=2)*t*t*t - 2) + b; }} else if (Ease == 11) { T = c*(t/=d)*t*t*t*t + b;} else if (Ease == 12) { T = c*((t=t/d-1)*t*t*t*t + 1) + b;} else if (Ease == 13) { if ((t/=d/2) < 1){ T = c/2*t*t*t*t*t + b; } else { T = c/2*((t-=2)*t*t*t*t + 2) + b; }} else if (Ease == 14) { T = -c * Math.cos(t/d * (Math.PI/2)) + c + b;} else if (Ease == 15) { T = c * Math.sin(t/d * (Math.PI/2)) + b;} else if (Ease == 16) { T = -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;} else if (Ease == 17) { T = (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;} else if (Ease == 18) { T = (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;} else if (Ease == 19) { if (t == 0) { T = b; } if (t == d) { T = b + c; } if ((t/=d/2) < 1) { T = c/2 * Math.pow(2, 10 * (t - 1)) + b; } else { T = c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }} else if (Ease == 20) { T = -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;} else if (Ease == 21) { T = c * Math.sqrt(1 - (t=t/d-1)*t) + b;} else if (Ease == 22) { if ((t/=d/2) < 1) { T = -c/2 * (Math.sqrt(1 - t*t) - 1) + b; } else { T = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }} else { T = t * 100;}Duration = linear(T, 0, 100, 0, 100 + (timeOffset * textTotal));if (RTL == 0) { dir = textIndex;} else { dir = textTotal - textIndex;}v = Duration - (timeOffset * dir);anim = (2 * Math.PI * v) / 100;amp = linear(v, 0, 100, Amount, 0);Math.cos(anim * overShoot) * amp;

 

--

error 4:

$MarkerName = 'Intro';
$PresetName = 'TP_Blur 02_In_N-xWx';

///------------------------------------------------------------------------
timeOffset=11;
overShoot = 2.8;
Start = 11;
End = 100;
Ease = 1
RTL = 0;
/////---------------Eases refrence on: http://easings.net/
///------------------------------------------------------------------------

Amount = effect($PresetName)("Amount");Marker = thisLayer.marker.key($MarkerName).time;mDur = Marker + thisLayer.marker.key($MarkerName).duration;lenght = mDur - Marker;str = (lenght * Start) / 100;end = (lenght * (100 - End)) / 100;b = 0;d = 1;c = 100;t = linear(time, Marker + str, mDur - end, 0, 1);if (Ease == 2) { T = c*(t/=d)*t + b;} else if (Ease == 3) { T = -c *(t/=d)*(t-2) + b;} else if (Ease == 4) { if ((t/=d/2) < 1) { T = c/2*t*t + b; } else { T = -c/2 * ((--t)*(t-2) - 1) + b; }} else if (Ease == 5) { T = c*(t/=d)*t*t + b;} else if (Ease == 6) { T = c*((t=t/d-1)*t*t + 1) + b;} else if (Ease == 7) { if ((t/=d/2) < 1) { T = c/2*t*t*t + b; } else { T = c/2*((t-=2)*t*t + 2) + b }} else if (Ease == 8) { T = c*(t/=d)*t*t*t + b;} else if (Ease == 9) { T = -c * ((t=t/d-1)*t*t*t - 1) + b;} else if (Ease == 10) { if ((t/=d/2) < 1) { T = c/2*t*t*t*t + b; } else { T = -c/2 * ((t-=2)*t*t*t - 2) + b; }} else if (Ease == 11) { T = c*(t/=d)*t*t*t*t + b;} else if (Ease == 12) { T = c*((t=t/d-1)*t*t*t*t + 1) + b;} else if (Ease == 13) { if ((t/=d/2) < 1){ T = c/2*t*t*t*t*t + b; } else { T = c/2*((t-=2)*t*t*t*t + 2) + b; }} else if (Ease == 14) { T = -c * Math.cos(t/d * (Math.PI/2)) + c + b;} else if (Ease == 15) { T = c * Math.sin(t/d * (Math.PI/2)) + b;} else if (Ease == 16) { T = -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;} else if (Ease == 17) { T = (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;} else if (Ease == 18) { T = (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;} else if (Ease == 19) { if (t == 0) { T = b; } if (t == d) { T = b + c; } if ((t/=d/2) < 1) { T = c/2 * Math.pow(2, 10 * (t - 1)) + b; } else { T = c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }} else if (Ease == 20) { T = -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;} else if (Ease == 21) { T = c * Math.sqrt(1 - (t=t/d-1)*t) + b;} else if (Ease == 22) { if ((t/=d/2) < 1) { T = -c/2 * (Math.sqrt(1 - t*t) - 1) + b; } else { T = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }} else { T = t * 100;}Duration = linear(T, 0, 100, 0, 100 + (timeOffset * textTotal));if (RTL == 0) { dir = textIndex;} else { dir = textTotal - textIndex;}v = Duration - (timeOffset * dir);anim = (2 * Math.PI * v) / 100;amp = linear(v, 0, 100, Amount, 0);Math.cos(anim * overShoot) * amp;

136
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
no replies

Have something to add?

Join the conversation