Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Latest commit

 

History

History
47 lines (26 loc) · 1.27 KB

README.md

File metadata and controls

47 lines (26 loc) · 1.27 KB

TextureUnpacker

Overview

Use this script to unpack .png sprites from the sprite atlas (providing a .plist or .json data file and a .png file) packed by TexturePacker.

Dependencies

Usage

$ python unpacker.py <filename> [<format>]

filename

  • Filename of the sprite atlas image and data file without extensions.

format

optional

  • Data file format. Valid values are plist and json. If omitted plist format is assumed.

Examples

Default (plist) example

We have a pair of sprite atlas files named Sprite.plist and Sprite.png packed by TexturePacker. Put them in the same folder as the unpacker.py script and run one of the following commands:

python unpacker.py Sprite

or

python unpacker.py Sprite plist

Script will generate a folder named Sprite containing all the sprites from the sprite atlas.

JSON example

If you have Sprite.json data file instead of the Sprite.plist one run the following command:

python unpacker.py Sprite json

Result will be the same.