2 Replies Latest reply on Dec 20, 2015 5:17 PM by philippemaurice

    Cleaning studio background + tracking

    philippemaurice Level 1

      okay so here is the issue , i am trying to pretty much remove all the shoe marks from the paper background , the shot was not locked on a tripod it was , a pan up + move in shot to the subject.

      i understand that i need to use tracking and link it to the brush to cover the marks,


      my problem is there are multiple areas in the background that has marks and every time i used the brush to clean it + clone stamp tool , under the paint it created a clone or a brush layer,

      by the time i was done cleaning the background , i had like 30 of those , so my question is , is it possible to  combine all these into 1 layer so i can link it to the tracker ? or there is another better way to do so ?

      i have searched everywhere and did get nothing about cleaning multiple spots.


      i am using the latest after effects,

      Pls help


      Thank you



      Screen Shot 2015-12-19 at 5.33.18 PM.png

        • 1. Re: Cleaning studio background + tracking
          Rick Gerard Adobe Community Professional & MVP

          From your description of the shot I would probably stabilize (not warp stabilize) the shot so that some key point in the shot doesn't move, then export a frame that shows the area of the floor that you want to clean up to a photoshop file, then do your cloning on a separate layer in Photoshop, then import that layer and place it above the footage then do any roto you need to do to fix moving actors or other objects, then remove the stabilization and add the movement to the fixed layer using a null, an expression, and parenting.


          I know that sounds confusing so here's a step by step including the expression(s) you may need to use. If I don't understand your shop or if there's a lot of lens distortion this may not work. It would help a lot if we could see the shot. Nevertheless, here goes.

          1. Open your footage in the footage panel and set an in and out point for the portion of the shot you intend to use plus handles (a few frames to allow for editing)
          2. Select the footage in the Project Panel and choose New Comp from Selection from the menu or right click or drag the comp to the new comp icon at the bottom of the panel
          3. Set the workspace to Motion Tracking
          4. Select the layer and then choose Stabilize Motion from the motion tracking panel. If there is a significant perspective change or any rotation then you'll want to stabilize scale and rotation also
          5. Pick some area of detail that you want to lock into position. The more detail the better. Make sure you are tracking a large enough area to get a good track. If you are stabilizing scale and rotation then pick two points that are vertical for a tile up shot or horizontal for a pan shot or at an angle for a shot that tilts and pans
          6. When you get a good solid track select apply to lock the layer in position
          7. Find a frame that shows most of the floor and export that frame as a Photoshop file (note: if the edges of the frame won't let you see all of the floor that you need to fix then change the size of the comp temporarily)
          8. Open the exported frame in Photoshop
          9. Create a new layer in Photoshop
          10. Select the clone tool or paint brush and fix all of the blemishes you need to repair (works if you set the clone stamp tool to use all layers)
          11. Import the PSD into AE and choose only the fixed layer
          12. Add the layer to the timeline
          13. Scrub through the timeline to see if there are any places you need to animate the scale, distort the replacement image or rotoscope the image so the shot works
          14. If you have resized the comp it's time to return the comp to the original settings
          15. Rename your original footage layer "stabilized"
          16. Add a null to the composition
          17. Apply this animation preset to the null: Dropbox - destabilize Rotation Scale.ffx
          18. Move the CTI to the first frame of the comp
          19. Parent the original footage and the repaired layer to the Null to add the movement to the repaired layer and return the camera movement to the original footage
          20. Check the comp for any problems or color grading you need to do with the repaired layer

          That's it.


          Here are the expressions that are added to position rotation and scale. Position is easy, you just tie the null's position to the stabilized footage Anchor Point. Rotation is also easy, you just subtract the rotation value of the original footage by placing a - sign int the expression before you use the pickwhip to connect the nulls rotation to the stabilized footage rotation. Scale is a bit more difficult. You have to calculate the percentage of change and separate the values into an array and then reassemble them. As long as you have renamed the footage layer "stabilized" the animation preset will do this for you automatically.




          x = value[0];

          y = value[1];

          tx = thisComp.layer("stabilized").transform.scale[0];

          ty = thisComp.layer("stabilized").transform.scale[1];

          nx = x/tx*x;

          ny = y/ty*y;

          [nx, ny]


          - thisComp.layer("stabilized").rotation

          • 2. Re: Cleaning studio background + tracking
            philippemaurice Level 1

            Thank you soooo much you are the REAL MVP !!!