Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Stupid question… trying to make an adaptable animation preset

  • Stupid question… trying to make an adaptable animation preset

    Posted by Jon Melot on November 7, 2022 at 7:22 pm

    Hello all,

    I feel dumb for asking this… it seems like it should be very easy… but my brain just can’t wrap around this process.

    I’ve got about 80 PSD files that have been handed off to me. I need to do simple simple simple animations to it. Mostly just “sliding in” three layers in each. Basically, simple keyframe animation bringing in one layer from off-screen from the left, another from the right, and another from the bottom. That is all very easy of course… just simple keyframe work, like the most basic.

    However, I want to be able to make an animation preset so I can quickly apply those animations to the layers in the other 79 comps that I have. Ideally, I’d like to grab the layer I need and select a custom preset of “overshoot from left” or something similar. Select the next none and grab the preset for “overshoot from the right”, etc… However, all my layers are in different relative positions from one comp to the next, so, the keyframes don’t correspond with “move from this specific point to this specific point.”

    What am I missing here? I’m sure it is painfully obvious…. is there a way to generically make a transition animation that is basically, “slide in from left to your default position” no matter where it is in the comp?

    Sorry if this makes no sense… I’m glad to offer any clarification and receive any guidance you all might have.

    Jon Melot replied 3 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Graham Quince

    November 7, 2022 at 8:37 pm

    I think instead of using pixel measurements, you can probably get around the different image sizes using:

    thisLayer.width and thisLayer.height

    These will give you the sizes in order to drive any expressions.

    You could also use thisComp.width etc… to determine the “off screen” placement.

    And you could look at something like this expression:

    transition = 20;       // transition time in frames
    if (marker.numKeys<2){
    tSecs = transition / ( 1 / thisComp.frameDuration); // convert to seconds
    linear(time, inPoint, inPoint + tSecs, 0, 100) - linear(time, outPoint - tSecs, outPoint, 0, 100)
    }else{
    linear(time, inPoint, marker.key(1).time, 0, 100) - linear(time, marker.key(2).time, outPoint, 0, 100)
    }

    which fades a layer in and out automatically. I think it would be pretty straight-forward to adapt for position, but if you get stuck, post back here and I’ll see if I can help you out.

  • Jon Melot

    November 7, 2022 at 9:44 pm

    Right on! Thanks so much. I’ll play around with this and see if this gets me where I’m going. I really appreciate it!

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