Why are they hidden? These features would require additional space in the user interface but are only used by a small number of users.
You can enable these features by opening the .tps file with a text editor. It's XML.
Ignoring files and directories
TexturePacker adds all image files it finds from a folder. Sometimes you might not want this behaviour — e.g. to exclude .psd files.
Locate the following section in the .tps file:
This example ignores all files in a folder called test and all files ending with .psd
<key>ignoreFileList</key> <array> <string>*.psd</string> <!-- ignore all .psd files --> <string>*/test/*</string> <!-- ignore everything in /test/ --> </array>
<string>...</string> for each entry.
The expressions support unix wildcards.
Replacing file names and removing full path
Replacing parts of file names or complete paths, removing directory prefixes can be done with the following change to the .tps file:
Locate the following section
and replace it with these lines to remove all path segments from the sprite names:
<key>replaceList</key> <array> <string>.*/=</string> <!-- replace everything left of / with nothing --> </array>
You can add multiple replacements, make a separate
<string>...</string> for each.
The format of the replacements is:
REGEXP=STRING. The replacement uses perl regexp.
Heuristic mask replaces solid color in the sprite's background with transparency. Works im most cases ;-)
To enable it locate the following section in the .tps file
and replace it with