Copy link to clipboard
Copied
Hey! I'm looking to create this animation effect for some video transitions in a project. Unable to find an explanation on a how-to.
Is there a simple way to 'link' a video layer with dimensions of a mask/matte so they move togther (like in the example), or is the only way to acheive the video changing it's dimensions within the desired 'box outline' (as in the video changes it's centre point to fill the area proportionally) is to alter it manually and match the mask or matte keyframes with the video position keyframes. Hope that makes sense.
Thanks!
Copy link to clipboard
Copied
You don't use masks, you use shape layers as track mattes. That takes care of half the work. you know, there is a parametric rectangle with rounded corners... Multiple boxes can then be linked with some expressions so they push and pull each other out of the way as one resizes. the only thing you may need to do fully manually is re-centering and scaling the underlying images for a nice zoom-in effect. It's really not that complicated.
Mylenium
Copy link to clipboard
Copied
This question and @Mylenium 's reply intrigued me and I wondered if it is as simple as the big M says.
As soon as I saw Shape Layers, I started thinking that Trim Paths was a better option. This allows you to control the width without having to manage the anchor point. But then height is still an issue.
So I tried out shape layers and with a couple of simple expressions, you can get 4 boxes to respond... but when each box grows or shrinks the video underneath would be unaffected. And that made me think a better way would be to use the layer's scale to control the box size.
So... I did the following:
100-thisComp.layer("Box 1").transform.scale;​
X = value[0];
Y = 100-thisComp.layer("Box 1").transform.scale[1];
[X,Y]​
This allows the X / width scale to be keyframed while the Y scale is driven by the red solid.
X = 100-thisComp.layer("Box 3").transform.scale[0];
Y = 100-thisComp.layer("Box 1").transform.scale[1];
[X,Y]​
This gives me 4 boxes, all on their own layer for matting and any videos I choose to add can be set to be parented to the corresponding layer to scale as needed.
Here's the project with all 3 options (comp 3 is the one above) : https://www.dropbox.com/scl/fi/wwt4anhl85niwlvawrwjv/Matte-boxes.zip?rlkey=y1szjh9yohmrxmcb607avoase...
Copy link to clipboard
Copied
Hi,
Appreciate the detailed response!
I'm obviously not an expert at AE, so thank you for explaining. With your file I'm running into the problem (vid attached) where the video I place within the matte and parented to the box distorts along with the scale animation. I'm sure there is a way to fix this that I'm not aware of, and I understand that to get around that I could animate the position and scale of the video itself seperately. I just thought AE might have an effect / expression that could get around this for quicker workflow (expressions is something I'm somewhat new too).
I'm basically trying to animate something like the original video I posted and the 2nd one I have attached to this reply. Animations originally created in Figma for a 4 screen video wall display where scale is animated and the video file is 'linked' to frame scale to move around but not distorted or stretched.
Thanks again,
G
Copy link to clipboard
Copied
I'm sorry, I've had a couple of nightmare days at work and not had any time to respond. After putting together the original comp I shared, I've resvisited and and added in a few extra touches. The centre of each video now remains in the centre of each box, so you don't have to adjust the positions. You still need to adjust the scale, but that's partly because I prefer to have some control and lets you use each video's anchor point to alter positioning if needed.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now