Jump to content
You must now use your email address to sign in [click for more info] ×

Resources for writing plugins?


Recommended Posts

I recently starting using this software when I transitioned from 3D art [blender] to 2D art.

I often used the Blender API to write simple plugins that could automate repetitive tasks. I had no knowledge of python before this, but managed to learn enough to write code that did what I needed it to do.

I've been having a lot of issues finding anything similar to an API for Affinity Photo 2; There are a number of things that I would like to automate, but I have no idea where to even begin writing code for this program.

Also, there are a few plugins that were written for Photoshop that I would like to use for Affinity Photo 2, but they do not work at all. If I had access to resources for making plugins specifically for Affinity Photo 2, I would be able to fix these issues.



Why does it seem like there are no resources for writing plugins for this program? If they do exist, where are they?

Link to comment
Share on other sites

There is no API for Affinity and as far as I am aware, no intention to have an API available for the foreseeable future.

iMac 27" 2019 Somona 14.4.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

35 minutes ago, poisenbery said:

but don't offer any support for that support?

The third-party plugins are Photoshop plugins, written to the Photoshop specification for image plugins, and probably a rather old version of that specification (probably 2015-2016 timeframe). Consult that documentation and you are on the same footing as the creators of the other plugins that work in Affinity Photo today.

You could also look at the G'Mic plugin, which is open source, for a working example (for Windows, at least).

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

(probably 2015-2016 timeframe)

I'm trying to get the new Stable Diffusion Photoshop plugins to work at all in Affinity Photo 2. They're very new, and do not load or even appear in the plugins section.

I was experimenting with some very old photoshop plugins I found online, and they're in a 8bf format and it seems to get recognized by the plugin loader.

So does this mean that new photoshop plugins are not compatible with affinity photo 2?

I've been having no luck with the .ccx files. The plugin manager doesn't recognize them and extracting to their own folder doesn't seem to work either.

Edited by poisenbery
Link to comment
Share on other sites

1 hour ago, poisenbery said:

I was experimenting with some very old photoshop plugins I found online, and they're in a 8bf format and it seems to get recognized by the plugin loader.

That's the usual way to go for APh, aka using the much older PS C++ API.

1 hour ago, poisenbery said:

So does this mean that new photoshop plugins are not compatible with affinity photo 2?

Yes, that does it mean! - No UXP Plugin API support, just the old C++ API here (...and not all of it, just a subset).

 

1 hour ago, poisenbery said:

I've been having no luck with the .ccx files. The plugin manager doesn't recognize them and extracting to their own folder doesn't seem to work either.

The "UXP Plugin API" is too modern and not supported by APh.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.