Jump to content

[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?)

Link to comment
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



Link to comment
Share on other sites

  • Staff

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
Link to comment
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!



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

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. 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.