HixField
HixField

Reputation: 3796

Paintcode export to subfolder

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

Upvotes: 0

Views: 42

Answers (2)

MarLoe
MarLoe

Reputation: 1

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

Upvotes: 0

backslash-f
backslash-f

Reputation: 8193

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.

Upvotes: 0

Related Questions