Affinity scripts

Bend a photo by dragging pins.

Puppet Warp for Affinity moves parts of a photo where you want them (an arm, a branch, a mountain peak) while the parts you pin stay put and everything keeps its shape. It's the Photoshop feature Affinity doesn't have, as a script.

// see it

One line, six pins: the peak rises

A lake with snowy peaks, with a red line drawn upward from the central peak and red dots on the forest, shore and other mountains
The pins: a line from the peak up, dots to hold the rest
The same photo after Puppet Warp: the central peak is taller and sharper, the forest, lake and other mountains unchanged
After Puppet Warp

// how it works

How you use it

1 · Add a Pins layer

Add a new layer named Pins above your photo.

2 · Draw the moves

With the Pen or Line tool, draw a line from each spot you want to move to where it should go. Draw small circles on spots that should stay where they are.

3 · Run the script

Select the photo's layer and run Puppet Warp. The result appears as a new layer; the original and the Pins layer are hidden underneath, so nothing is lost.

Pin what should stay

Moving an arm? Put circles on the shoulder and the body. Pins hold their spot exactly, and the picture bends smoothly between them.

Edges stay put

By default the edges of the photo don't move, so the result fills the frame. Turn it off to let the whole picture shift.

Fast

Well under a second for a normal photo, about a second for 24 megapixels. Not right? Delete the new layer, move a pin and run it again.

// get it

Get Puppet Warp

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.

Is it the same as Photoshop's?

Same idea, different handles: in Photoshop you drag pins on a mesh; here you draw where each pin goes on a Pins layer, then run the script. The bending is rigid moving least squares, a published method that keeps shapes from stretching or shearing, written from scratch for Affinity.

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. To warp a cut-out object, put it on its own pixel layer and pin that.

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 Puppet Warp. We reply within one business day.

> contact_

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