Paintcode export to subfolder

44 views Asked by At

When defining export to image settings for a canvas, is there a way to let PaintCode export to different folders depending on the canvas?

A few of my canvasses are language dependend and need to be exported into subfolders with the language in it (android)....

2

There are 2 answers

4
backslash-f On

Currently there is no option for doing what you want.

I believe what you should be doing, instead, is to parameterize the String itself, like so:

localizable

This way you expose your String and can set whatever you want at runtime.

0
MarLoe On

You can name each canvas with / to get subfolders. E.g. a canvas named

Resources/Images/Top

will export into [root]Resources/Images/Top.png

You can even put / in the "File Suffix" field to get even further into subfolders.

For example when I export png's into an iOS imageset I name each canvas like this:

Canvas name: Assets.xcassets/TopLeft0.imageset/
File Suffix: Image
File Suffix: Image@2X
File Suffix: Image@3X