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

Error with scrolling text

New Here ,
May 18, 2020 May 18, 2020

Copy link to clipboard

Copied

Hi all:

 

Thought I would start with I figured to be an easy tutorial with some scrolling text, like hacker terminal FX, and with that being said, I was following along and had to put some expressions in the postion area. Well one of them is really not liked by the program and seeing I am just starting out, I have no clue what it wants or how to go around it--this is what I was to imput:

pLine=this.sourceRectAtTime(time).height;
scaler=(transform.scale[1]/100);
value-[0,pLine*scaler];

SO basically as the text scrolls, it updates and scrolls up, but that surely doesn't happen at all. The program does like the first line, and only the first line.....so dunno what to do, just thought this would be a first fun outing. It just says that sourceRectAtTime() is not a function....of what??

 

Best regards,
AJ

 

TOPICS
Error or problem , Expressions , User interface or workspaces

Views

665

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 ,
May 18, 2020 May 18, 2020

Copy link to clipboard

Copied

Positions are arrays. You can't just write "value-something". You have to extract the vector components and subtract them separately or use actual vector math. And the this. reference in the first line is kinda nonsense, too. There is no reason to reference the current object in an expression. AE's evaluation is strictly based on the property stream the expression is applied to, anyway.

 

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 ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

having the same issue. how dd you finally resolve it?

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 ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

LATEST

no more : this. in the expression

try :

pLine=sourceRectAtTime(time).height;

scaler=transform.scale[1]/100;

value-[0,pLine*scaler]

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