Skip to main content
TheFosterHouse
Known Participant
January 11, 2019
Question

Copy edge pixels and expand edge color?

  • January 11, 2019
  • 6 replies
  • 17471 views

I'm looking for a plug in or script that could help with a very specific issue. I have an object that is out of focus and I need to replace what is behind it. I'm aware of the regular methods and techniques to achieve this, but I'm looking for a faster way. I'm looking for a way to use a filter such as Stroke or Edge Finder in conjunction with a mask to create an outline on the layer. I want to mask the object at the point of the last solid bit before the blur begins and apply a filter that creates a stroke on the mask. Instead of using a single color the stroke, I want to have it sample the color of the pixels of the image at the edge of the mask and expand them outward. Basically, I want fake a "Strait Alpha" so I can defocus from there. Does anyone know of anything that can help achieve this? Thanks.

6 replies

PatriciaClark
Participant
November 20, 2025

Try creating an edge mask, extending it to the last solid pixels. Then use that mask to select and extend the edge pixels with Content-Aware Fill. Or alternatively use the clone tool and a masking plugin like Fluid Mask or Topaz Mask AI to automate this.

Inspiring
November 20, 2025

I built it. Introducing Extendo!

Participating Frequently
November 20, 2025

This looks awesome! I noticed it says windows only at the bottom, but then at the top it says for mac and windows.

Is it for mac now too? Or is it saying only the trial mode is windows but the full version is both?

Inspiring
November 20, 2025

It works on MY Mac, but I'm waiting for...

 a) Apple to notarize the plugin, which is taking days

 b) aescripts or pluginplay to accept the plugin so they can notarize it.

 

I'm hoping it's ready within the week. 

kiakima
Participant
March 4, 2021

Use CC RepeTile with the slide setting for Tiling. Super easy. It will be based on the original size of your layer, so you will have to resize a precomp to the edge you want to use.

TheFosterHouse
Known Participant
April 5, 2021

great solution. masking the effect off helps hide seems as well.

Participating Frequently
September 19, 2023

Hey there, woulld you mind elaborating a bit on how RepeTile solved your problem? As I understand you were asking for the entire silhouette of an animated object (a dancing person) to have the edge extended by a certain amount of pixels. I just tried doing this with RepeTile and while it does have the exact desired effect, it only works as constrained to a rectangle which isn't helpful at all in the case outline. I've attached an example where I've applied the effect to a tiger with an alpha channel. 

This is a really commonly desired effect for compositing to clean up bad edges. Not sure why AE can't just make an effect that does this. Maybe even... a suite of effects for basic compositing needs they still don't have? Anyway, I digress!

Thanks!

Rameez_Khan
Legend
January 17, 2019

Hi TheFosterHouse,

Did any of the suggestions mentioned above help?


Let us know.

Rameez

Participant
January 18, 2019

Thank you all for the tips. Mylenium gave me an idea. Rather than the mass of precomps and duplicates, I was able to use RedGiant's Hall of Mirrors plug-in on the masked area. Scale set to 1.01 and ramping up the number of images to about 50 gave the edge I was looking for. The center of the shape was averaged via Tracker-Vis, so I got a decent center point for the effect. It may not work on all examples, but it gave me what I was looking for. Thanks.

Rameez_Khan
Legend
January 18, 2019

Thanks for coming back and letting us know.

Regards,

Rameez

Participating Frequently
January 13, 2019

Hi. Have a look at the Refine Matte effect, it may do what you need with a bit of study.

Participating Frequently
October 30, 2023

I second this. Add Refine Matte and crank up the Shift Edge parameter and it does exactly what you need. Perhaps a few more layered duplicated Refine Matte FX would shift it outwards even more but I haven't tried that just yet.

TheFosterHouse
Known Participant
October 30, 2023
Mylenium
Legend
January 12, 2019

Easily done, but not with plug-ins or any of that. You simply need a ton of pre-comps as duplicates of your source footage and then work with Track Mattes, Shift Channels, Set Matte, Minimax, Matte Choker and similar effects. You would apply Find Edges to one of the pre-comps, then use the resulting greyscale image as a matte and massage it further with the mentioned effects to increase its thickness, smooth and feather it. this can then easily be used on another (blurred) duplicate of the layer/ comp as a matte to get your colored edges. Similarly, with additional masking or channel-based voodoo individual areas can be extracted. Again, no magic, just work and a relatively complex setup.

Mylenium

dean_k
Participant
November 9, 2020

It's very possible this is asking too much, and please dont take it as me being rude.

 

Would you care to explain a bit more specifically this approach?  I dont have a ton of experience with AE, but am trying to extend the pixels of an animated layer with a character dancing across it (the character is the only non-alpha pixels on the layer). I think I am in essence trying to do that which you explained above.  Thanks alot.