Skip to main content
Participant
May 19, 2020
Question

Error with scrolling text

  • May 19, 2020
  • 2 replies
  • 978 views

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

 

2 replies

Participant
February 18, 2024
having the same issue. how dd you finally resolve it?
Participant
February 18, 2024

no more : this. in the expression

try :

pLine=sourceRectAtTime(time).height;

scaler=transform.scale[1]/100;

value-[0,pLine*scaler]

Participant
February 17, 2025

This really helped.

Mylenium
Legend
May 19, 2020

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