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

Add location variables to slice export (DESIGNER)


Recommended Posts

Hi,

 

I export UI design elements as slices from affinity designer and use them to design iOS apps. With each slice I export, I need to ensure that it's location in the Xcode interface builder is exactly the same as it was in affinity designer artboard. It would be wonderful if affinity designer wrote the x,y coordinates of each slice as it appears in the artboard into the file name. Then I could get pixel perfect layout in Xcode either by copying the coordinates by hand or by scripting something that derives the layout from the file name of the image.

 

To do this, all you would need to do is add location variables to the export filename options in export persona. Adding just "top" and "left" would be sufficient. Top, left, right, bottom, centreX, and centreY would be even more complete. Users who want to use these variables could then easily construct their own file export naming schemes to encode location information.

 

Thanks again for making great software

Link to comment
Share on other sites

Hi sirhans,

 

I do not use artboards, only single images. The exported slices with the json script ends up as good as it does from Photoshop. The exported json script coordinates from Affinity is what I use for the (automated) setup in Spine and for the programmer use in LUA.

 

Anyway I have to test the artboard slice export, since artboard would probably be of good use for me, to see what the script file looks like after slice / script export.
 

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.

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.