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

Stable Diffusion plugin/script in Affinity Photo

Recommended Posts

Please provide me with some information on how should I prepare the Photoshop plugin/script to use it in Affinity Photo. I know that Affinity Photo doesn`t use its own plugin engine (open for everyone) and that`s why I wanted to prepare a Photoshop plugin only to use it with Photo.

But I don`t know which extension is best, or what is not supported by Photoshop Scripting.

I would like to create a script to use Stable Diffusion with Affinity Photo. I may use some headless mode of third-party WebGUI to use it with Affinity Photo.

I think that Affinity Photo deserves for own Stable Diffusion plugin (the best would be the SDXL model with controlnet and inpaint). I think that is a shame that no one has done it yet.

I`m an ex coder but I would prefer scripting that C++ compiling methods because I would like to do it simply.

Any tips/thoughts?

Link to comment
Share on other sites

1 hour ago, 3dpartdesign said:

But I don`t know which extension is best, or what is not supported by Photoshop Scripting.

As there is yet no own scripting in APh (...just a very limited "Macros" facility unusable for such tasks you have in mind) and Photoshop like scripting isn't supported either way, you can actually forget this approach!

AFAI can say, a plugin would be actually your only chance here yet, BUT APh uses the old Photoshop C++ plugin API and with that from the Affinity side only simple things like an image transfer between the app and a plugin are supported. Meaning the usage of the PS C++ API is also very restricted here to just image exchanges. - Further there are no official Serif examples, docs or tutorials etc. of how to make any right usage out of the old Photoshop C++ API, so the whole is more or less then "try & error || sucess" on your own.



☛ 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.1.2 ◆ iPad OS 17.1.2

Link to comment
Share on other sites

I would like to make a feature request:

I would like to have the opportunity to use Stable Diffusion inside Affinity Photo same as Krita or Gimp users. 

Photoshop users have their Generative Fill feature. 

I would like to use Stable Diffusion Controlnet with an Inpainting feature inside Affinity Photo (which could work the same as Photoshop Generative Fill). If there is no plan for that feature then please do some open scripting API I will write that code alone.

I like Affinity Photo much and I think it would be a dream pair to have a Stable Diffusion plugin inside Affinity Photo.

I`m a Windows V2 user. Cheers!!!

Link to comment
Share on other sites

Affinity Photo 2.x | QCAD 3.x | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  GIMP  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Sigma 17-70mm f/2.8-4.5 DC Macro | Canon EF 70-200mm f/4 L USM
...vainly looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

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.

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.

  • 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.