Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linear expression to control start/end keyframe (Essential Graphics problem)

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

    Posted by Sem Brys on April 23, 2019 at 3:47 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); }

    Sem Brys replied 7 years ago 1 Member · 1 Reply
  • 1 Reply
  • Sem Brys

    April 24, 2019 at 7:37 am

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy