ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linear expression to control start/end keyframe (Essential Graphics problem)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sem Brys
Linear expression to control start/end keyframe (Essential Graphics problem)
on Apr 23, 2019 at 3:47:31 pm
Last Edited By Sem Brys on Apr 23, 2019 at 5:50:01 pm

Hello, I have a question regarding the linear expression I am using.
This expression is used to control the start and end range of a basic text animation ( 'typewriter' in Animation Presets).
The idea is to have a template where I can choose the start and end frame of the text coming on screen.
It works just fine in the composition itself, but when I use it as an essential graphics layer in another composition the animation always starts at the in point of the layer, regardless of the numbers I input in the essential graphics panel.

I'm working on AE CC v15.1.2

Here is a link to a screenshot, if that would help to clarify the problem.
https://cincopa.com/~A4IA-RbWMFlu!AEODePzHPqml

And the code I'm using:

StartPoint = effect("START")("Slider")/25;
EndPoint = effect("END")("Slider")/25;

if (time<=StartPoint){0;}
else if(time>=EndPoint){100;}
else { linear(time, StartPoint, EndPoint,0,100); }


Return to posts index

Sem Brys
Re: Linear expression to control start/end keyframe (Essential Graphics problem)
on Apr 24, 2019 at 7:37:52 am

Hmm, very strange. After giving up yesterday and reopening the project today the problem seems fixed...


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]