Affinity scripts

Move it. The gap fills itself.

Content-Aware Move for Affinity lifts an object out of a photo, fills the spot it left with Affinity's own inpainting, and after you drag it somewhere else, blends it into its new surroundings. It's the Photoshop feature Affinity doesn't have, as a script.

// see it

One tree, moved down the shore

A lake with snowy peaks and a forest; a light green tree stands on the shore on the right
Before: the light green tree on the right
The same photo after Content-Aware Move: the tree now stands on the left shore, and where it was there is forest
After: moved left, its old spot filled

// how it works

How you use it

1 · Select the object

With the Selection Brush or Freehand Selection tool, select the object with a little room around it.

2 · Run the script

Select the photo's layer and run Content-Aware Move. The object goes on its own layer, and the gap it leaves is filled.

3 · Drag it

The new layer is already selected: drag it wherever you want with the Move tool.

4 · Run it again

Run the script once more: the object's colour and light shift to match its new spot, so its edge disappears.

Nothing is lost

Your original layer is hidden underneath, untouched. The filled photo and the moved object are separate layers you can still edit.

Fast

Each step takes about a second on a normal photo. Moved it again? Run step 4 again.

// get it

Get Content-Aware Move

included $0 extra Already have Action Converter Unlimited or Seller? It's included: sign in below with the same email.

Prices exclude VAT or sales tax where it applies. You sign in with a code sent to your email (no password), so you can download again later.

// in affinity

Installing the script

1 · Turn on scripting

In Affinity: Settings → Scripting → Enable Affinity Scripting.

2 · Paste and save

Window → Scripting → Script Editor → New Script, paste the downloaded file, then Save As to keep it in your Scripts Library.

3 · Run it any time

Select a photo layer and click the script in the Scripts Library.

// questions

Questions

Which Affinity do I need?

The current Affinity app (free, by Canva), version 3.3 or later, which has scripting. Affinity Photo 1 and 2 have no scripting.

Couldn't I do this by hand?

Partly: copy the selection to a layer, inpaint the old spot, move the copy. The part you can't do by hand is step 4, which shifts the object's colour and light smoothly so its edge matches the new background (seamless cloning, the same idea as Photoshop's "adapt"). The script also does the first steps in one click.

What works best?

Objects on fairly even backgrounds (grass, sand, sky, water, a wall) moved to a similar background. Moving something from a dark spot to a bright one works too, but it takes on the new brightness. Turn "Match colour and light" down to keep more of its own.

Which images work?

8-bit RGB pixel layers (JPEG, PNG and most photos) that aren't rotated. 16-bit and CMYK layers aren't supported yet.

Can I share the script?

It's for your own use, including client work. Each download carries your licence ID. Please don't share or resell the file.

What if it doesn't work for me?

Contact us within 14 days for a refund.

What do you store?

Only your email, for sign-in and to find your purchase. Your photos never leave your computer: the script runs inside Affinity. The privacy policy and terms are shared with Action Converter.

Questions?

Ask us anything about Content-Aware Move. We reply within one business day.

> contact_

Photoshop is a trademark of Adobe Inc. Affinity is a trademark of Canva. Content-Aware Move for Affinity is made by Senyi Labs and is not made, endorsed or sponsored by Adobe or Canva. Example photo from Unsplash.