1

I am using After Effects, i am zooming an image using two keyframes and the scale setting, but as i zoom in, the image gets bigger.

I want the image to have the zoom-in but keep its assigned size. So i want something like "crop" on top of the zoom.

How to do this?

3

There are a couple of ways to achieve this:

  • Use a track matte. Create a layer with the desired size / shape and put it above the zooming layer. You can use masks to create any shape you want, or use an image that has an alpha channel, or even just a copy of the original layer without the animated scale. On the zooming layer go to the Tack matte / mode panel (you may have to hit f4 to toggle between switches and modes), and choose Alpha Matte "layer name". This will turn off visibility for the top layer, and apply its transparency to the layer below.

    enter image description here

  • Use a layer with the stencil alpha transfer mode above your original layer. This does a similar thing to a track matte, but it's not just for one layer, it's for every layer below the matte layer. And the visibility for the matte layer has to be on for it to work.

  • Use a preComp. Pre-comping replaces the original layer (or layers) with a composition containing just that layer(s). So you want to pre-comp the layer with the animated Scale property – select it and hit shift-cmd/ctrl-c or choose Layer>Pre-Compose from the menu. In the dialogue that appears choose move all attributes into the new composition. Now you can add a mask to the pre-comp to crop off the scaled edges of the layer. A pre-comp is similar to what you'd get if you rendered the layer as a movie and then brought that back into your comp (but with a few advantages). As the pre-comp is not zooming, just its contents, the mask will crop the edges as the contents get bigger. enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.