Skip to main content
New Participant
February 27, 2020
Question

Track warping & moving objects in After Effects and replace them with another object.

  • February 27, 2020
  • 3 replies
  • 1627 views

I have a video of a print coming out of a printer. There is an image on the printed paper should be replaced with another image. Unfortunately I can't seem to figure out how to do this perfectly... I have tried to track the corners of the image on the print and apply these points to a bezier warp on the image that should be placed there. But that gives me not the right amount of freedom to warp the image and when I do the edge are very rough.

 

I've also tried to apply the lockdown effect from vranos, but that doesn't seem to even correctly track my footage and so I can't create a mesh warp from it.

 

Does anyone have enough experience with replacing warping object in videos that could help my out?

 

I've added the video. So can anyone help my figure out how to replace the red section in the video with any image?

This topic has been closed for replies.

3 replies

Community Expert
February 27, 2020

Threw this together in about 2 minutes. Create a comp from the footage, add a solid that is the same size as the image you want to apply to the paper, pre-compose the solid layer but do not move all attributes to the new comp so you get a pre-comp that is the same size as the solid, add grid to the solid in the pre-comp, return to the main comp and apply mesh warp to the pre-comp and adjust it so that the perspective closely matches. When you get the mesh perfected then all you have to do is return to the pre-comp, drop the replacement image in the pre-comp and animate its Y position to match the speed of the paper coming out of the printer. A black to white gradient filled shape layer as an overlay using the screen or add blend mode and your new image is now on the paper. Here's the start:

This isn't perfect but it could be perfect with a little tweaking of the mesh and a couple of keyframes. No fancy tracking required. Pretty much what Mylenium suggested.

New Participant
February 27, 2020

I'm probably doing it wrong, because as I put in my image (which is btw 400 x 300 mm) is just stretch to fit the comp.?

Inspiring
February 27, 2020
You could try with the lockdown plugin from aescripts...

Envoyé de mon iPhone
New Participant
February 27, 2020

That I have tried, but didn't work out as I stated in my original question: "I've also tried to apply the lockdown effect from vranos, but that doesn't seem to even correctly track my footage and so I can't create a mesh warp from it."

Mylenium
Brainiac
February 27, 2020

Wrong approach. Build a warp at comp size usingt Mesh Warp based on a pre-comp where the image is moving from top to bottom. The edges can easily be cut off suing masks or linear wipes. Of course you may need to apply additional effects for tiny corrections and you will have to figure out ways to re-create the shading for the highlights etc., but otherwise this should be simple enough.

 

Mylenium

New Participant
February 27, 2020

My image will be stretched... So, I made a comp with the image in it and added this to my main comp. I then applied a Mesh Warp to it and sized it to the full ''travel' area that the image on the print has.