Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Dynamic keyframe value using expressions

  • Dynamic keyframe value using expressions

  • Martijn de Pooter

    May 15, 2020 at 1:14 pm

    Hi everyone,

    Due to having less work because of the pandemic, I’ve been focussing more on learning expressions in After Effects. I’m new to expressions, so sorry if I’m wasting your time!

    I’ve been trying to create a dynamic preset. Almost everything worked well, but I’m facing one problem now, which seems quite easy but I can’t figure it out. I’ll try to explain it as best as possible.

    I have a responsive text box, which is tied to the text layer with sourceRectattime(). The animation I’m looking to do is making the text come up inside of the text box, but I want this animation to be dynamic. I already have a layer that calculates what the value needs to be, but I can’t find out how to link this to the keyframes I want to link the value to.

    Below a screenshot with the explanation of my problem.

    The “Height position” is simply a layer that calculates the height of the text block using sourceRectattime() minus the “offset paths” value, so it shows the exact value of the text height.

    So, I’m searching an answer to the questions how I can give a keyframe a dynamic value with expressions.

    I hope someone can help me out ☺

  • Tomas Bumbulevičius

    May 16, 2020 at 2:07 pm

    Martijin, what you could do in this case, is use interpolation – which will allow defining that ‘position value’ without actual keyframes.


    Find out more:
    Motion Graphics Design & After Effects Tutorials
    On YT
    On VH

Viewing 1 - 2 of 2 posts

Log in to reply.

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