A Python script that parses Adobe Animate XML files to extract, offset, and save specific SubTextures from sprite sheets as standalone transparent PNG files.
Put your desired .xml and .png in "Imported" and use the commands below.
Commands:
List all available sprites
py sprite_extractor.py -lExtract all sprites to extracted/ folder
py sprite_extractor.py -aExtract all sprites (auto-yes to prompts)
py sprite_extractor.py -a -yExtract specific sprite
py sprite_extractor.py -t "player_walk" -o extracted/player_walk.pngCommand Options:
-l: List all sprites-a: Extract all sprites-t "name": Extract specific sprite-o "path": Output file path--offset X Y: Apply X,Y offset-y, --yes: Automatically answer yes to all prompts