Skip to main content
Participant
May 19, 2020 4:59 AM UTC
Question

Error with scrolling text

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

 

4 replies

Participant
Feb 18, 2024 9:16 PM UTC
having the same issue. how dd you finally resolve it?
Translate
Participant
Feb 18, 2024 9:36 PM UTC

no more : this. in the expression

try :

pLine=sourceRectAtTime(time).height;

scaler=transform.scale[1]/100;

value-[0,pLine*scaler]

Translate
Participant
Feb 17, 2025 2:53 PM UTC

This really helped.

Translate
Mylenium
Legend
May 19, 2020 5:50 AM UTC

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

Translate