1 person found this helpful
1. Import the Photoshop file as Composition - Cropped layers. Make sure you pick the option to have layer styles editable, instead of merged.
2. Select the picture layer and using one of the shape tools in AE (rectangle, rounded rectangle, etc) draw a mask that matches the area of the frame (so that when you scale up the picture the parts outside the frame are hidden).
3. Still with the picture layer selected, Pre-Compose it (Layer > Pre-Compose). In the Pre-Compose dialog, choose the first option ("Leave all attributes"). This will put the picture layer inside the Pre-Comp, but will keep all original attributes (layer styles and the mask, for example) outside.
4. Double click the Pre-Comp to open it. Animate the picture layer with scale.
Go back to the parent Comp and it should show what you expect - the inner shadow remains static, and the mask trims the parts of the picture outside of the frame. The reason why you Pre-Composed it, is because if an effect, mask or layer style is applied to a layer, it will grow with the layer as you increase scale. If you Pre-Compose it, the scale animation takes place before the mask or styles get applied in the rendering pipleline (the picture scaling animation appears to the parent composition as if it was a fixed size animation).
Bear in mind that the picture layer should be larger than the frame layer, so you can scale it down to begin the zoom animation and then scale it up to 100 per cent without it getting pixellated.
Wow! Adolpho, that was great. It works perfectly. I figured that there had to be a way to do it, but I couldn't put the pieces together. Thanks a lot.