• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Tracking clone stamp help

Explorer ,
Aug 18, 2022 Aug 18, 2022

Copy link to clipboard

Copied

I'm confused about a workflow using the clone stamp with the tracker, and hoping someone can be kind enough to set me straight...

 

I am removing a hole in talents hat. I'm tracking the hole, then pick-wiping the Transform: Position of the clone to the trackers Feature Center. (The clone stamp is a separate layer from the footage its cloning, with Paint on Transparent set to "On".

 

The clone follows the tracker fine, but I end up having to do a lot of keyframing to the Clone Position, because this position value does not follow the tracker.

 

How do I do this properly? It's like I need some additional offset position values to the Feature Center data, and then pick-wip Clone Position to that. But I can't figure it out.

 

Any help much appreciated!

TOPICS
How to

Views

122

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

You could apply a simple offset expression like

 

fCent=featureCenter;

xOff=-30;

yOff=-30;

 

X=fCent[0]+xOff;

Y=fCent[1]+yOff;

 

[X,Y]

 

Just pickwhip the correct reference to the feature center and play with the values. This can of course be expanded and modified infinitely, but that would require at least a screenshot and som more info.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Thank you! But I'm having an issue...

 

When I apply the expression to the Feature Center with keyframes on it, I get this error...

 

Screen Shot 2022-08-19 at 11.49.21 AM.png

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Nevermind, I have achieved what I wanted to do by doing the following....

 

  1.  parrent a null object's position to the feature center of my track
  2.  parrent a seccond null object's position to the first null object's position
  3.  On the seccond null object, add two slider controls labeled x and y, then add the following expression: thisComp.layer("layername").transform.position + [effect("x")("Slider"),effect("y")("Slider")]

 

Adjusting the sliders gives me an offest, which I can also keyframe.

 

If there's a more elegant way to do this, I'm all ears! Thanks.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

I instructed you to pickwhip the correct reference as per your scene, so please do just that.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

LATEST

The Clone tool has the following components that will take tracking data. 

Paint/Clone/Stroke Options/Clone Source/Clone Position = The source of the replacement pixels

Paint/Clone/Transform Clone/Position = Where the pixels go.

 

If you track the hole, add a null, apply the transform data to the null, then pickwhip the Paint/Clone/Transform Clone/Position values to the null, and the replacement pixels will follow the tracking.

 

This will work fairly well if the hat does not rotate, change perspective, or move closer to the camera in the shot.

 

The source of the replacement pixels, the "Paint/Clone/Stroke Options/Clone Source/Clone Position," takes the pixels from the frame you choose in Clone Time. It is not dynamic. Adding an offset to that value does nothing over time and will not respond to tracking data. I guess you could add a time expression to the Clone Time, then add an offset to a Clone Tracker.

 

If the lighting, the perspective, or the distance from the camera changes, tracking a hole on the hat and trying to apply that to the Clone tool is a very poor workflow.

 

Content-Aware fill would do a better job on your shot if it is anything like I think it is.

 

Another option would be to duplicate the footage of the hat, create a subtraction mask on the top copy that pokes a hole in the layer, feather the mask, then shift the position of the bottom layer so that the hole is filled with a part of the hat that has no hole. 

 

The other option would be to Motion Track and Stabilize the shot so that the hat does not move, then make the repair using Photoshop or even AE's clone tool on the stabilized shot, then put the motion back in the hat and add it to the repair. Mocha AE can do this fairly easily. It's not a hat, but here's a tutorial on the Motion Stabilize, add something, then put the motion back in using Mocha AE I prepared a while ago. It's a bench, not a hat, but it should give you the idea:

My Quick Tips Playlist

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines