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

Expression problems in new AE??

Explorer ,
Nov 28, 2017 Nov 28, 2017

Hi guys,  I'm trying to add an expression to my type layer in After Effects and I keep getting an error for line two?

Does anyone see what could be wrong with this expression? It seems so basic.

Thanks for your help!!

HERE IT IS:

L = text.sourceText.length;

It = time – thisLayer.inPoint;

T = It*effect(“Speed”)(“Slider”);

F = Math.round( It % 1);if(F==1 |(T0)){Fl=”|”;}else{Fl=” “;}substr(0,T) + Fl

3.2K
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

correct answers 1 Correct answer

LEGEND , Nov 28, 2017 Nov 28, 2017

just 2 days ago I was also looking for an expression to create a type cursor and stumbled upon the very same expression I think. it didn't work for me too.

here's one that works and looks more elegant:

L = text.sourceText.length;

T = (time-inPoint)*effect("Speed")("Slider");

F = Math.round(time % 1);

if(F == 1 | (T<L & T>0) ){Fl = "|";}else{Fl ="";}

substr(0,T) + Fl

just remember to add an expression slider and name it "Speed"

Translate
LEGEND ,
Nov 28, 2017 Nov 28, 2017

The conditional statemenet is all botched. Clean it up and use the correct sway brackets and logic operators.

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
LEGEND ,
Nov 28, 2017 Nov 28, 2017

just 2 days ago I was also looking for an expression to create a type cursor and stumbled upon the very same expression I think. it didn't work for me too.

here's one that works and looks more elegant:

L = text.sourceText.length;

T = (time-inPoint)*effect("Speed")("Slider");

F = Math.round(time % 1);

if(F == 1 | (T<L & T>0) ){Fl = "|";}else{Fl ="";}

substr(0,T) + Fl

just remember to add an expression slider and name it "Speed"

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
Explorer ,
Jan 20, 2018 Jan 20, 2018

awesome you found it!! ❤️

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
New Here ,
Aug 19, 2021 Aug 19, 2021
LATEST

Work for me.. Thank you

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 ,
Jan 06, 2020 Jan 06, 2020

Alternatively, if you don't want to write any code and happen to own iExpressions, you can use the Scroll Text Terminal expression which can add a blinking, customizable cursor and also can let your text appear letter by letter.

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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