Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

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 or CocoStudio

Notifications You must be signed in to change notification settings

pangliang/texture-unpacker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Also suport packed by Coco Studio

Dependencies

Usage

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

filename

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

format

optional Data file format.If omitted plist format is assumed.

  • plist : Plist file packed by TexturePacker, default
  • json : Json file packed byTexturePacker
  • cocos : Plist file packed by Coco Studio

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.

CocoStudio Plist example

If you have Sprite.plist data file, it is defferent from the plist which packed by Coco Studio and run the following command:

python unpacker.py Sprite cocos

Result will be the same.

About

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 or CocoStudio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%