Jump to content
Sign in to follow this  
Henry Stahle

[Multi] Export all layers script.

Recommended Posts

I use Photoshop for illustration and sometimes Spine for animating my illustrations. I like to move over to Affinity. Spine is supporting different software with a script for exporting transparent PNGs from each layer. The script exports Photoshop layers as individual, cropped PNGs. It writes a JSON file that can be imported into Spine where the images will be displayed in the same positions and draw order using the name of the layers. If there was a script for Affinity I could finally move over from PS. I really like Affinity a lot better...


​So - is it possible making scripts for Affinity?


​(As I understand there is no such thing as exporting single layers from Affinity?)

Share this post

Link to post
Share on other sites

Affinity Photo Beta (1.5 rc) has macro functionality, whereby you can record your actions, so although it is not scripting per se, it offers some automation.

You may want to give that a try.


High-End Photographic Prints



Share this post

Link to post
Share on other sites

Or you could use the Export Persona which already has support for generating Spine JSON files and PNG files from slices.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB

Share this post

Link to post
Share on other sites

Thank you for enlighten me on this subject! I promised myself also to read all Affinity documentation, it might help me understand some more of AP and AD...


I just tested the slice export function and a JSON script, and everything worked just as it should! Here you see the picture from AD to the right and the Spine setup directly from the script import!




Exellente! Thank you once more!



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.