ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Move certain amount of pixels with expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Stefan VlemmixMove certain amount of pixels with expression
by on Sep 8, 2016 at 9:26:00 am
Last Edited By Stefan Vlemmix on Sep 8, 2016 at 9:32:56 am

After plowing through Google for several hours and checking a lot of websites I've decided to create an account here because I have no clue how to solve my problem.

Here's the thing: for my work I create video's with text flying in and out of frame based on what the person in the video is saying. Currently I'm keyframing everything which is quite a drag. So I thought, why not use a simple expression and create a preset from that? The thing is... I can't find out how to do it.

What I want is the text flying into frame with a bounce at the end at the in point of a layer, and go back to where it came from at the out point. Always a given amount of pixels, 300 for instance and always over a given amount of time, say, 15 frames. I can't imagine this isn't possible since you can create some really awesome stuff with expressions.

Movement should be on one axis. If anyone can point me into a good direction, then I'll try to figure out how to change the direction of the movement, the axis and maybe add sliders for some extra control. Thanks in advance!

Here's an example of the text animation I want to create using expressions (only the text moving into frame):






Return to posts index

Walter SoykaRe: Move certain amount of pixels with expression
by on Sep 8, 2016 at 10:19:43 am

The quickest and easiest solution is probably Mister Horse [link].

If you want to do this with an expression, here's the general idea:

Test to see if the current time is within the layer's In transition. If it is, calculate the movement plus overshoot as a function of time. If not, test to see if the current time is within the layer's Out transition. If it is, calculate the movement the other way as a function of time.

You can find a nice description of bounce and overshoot on Dan Ebberts's site:
http://www.motionscript.com/articles/bounce-and-overshoot.html

You might also try Ease and Wizz, either as a replacement tool, or as inspiration for managing the bounce/overshoot. These expressions are built to use keyframes, but you can adapt them to use values instead.
http://aescripts.com/ease-and-wizz/

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

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