Skip to content

Commit

Permalink
image path patch
Browse files Browse the repository at this point in the history
im guessing some versions of aseprite dont add the image path on the json?
  • Loading branch information
MaybeMaru committed Jul 24, 2023
1 parent 7e21416 commit e83c473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file removed __pycache__/jsonxml.cpython-310.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion jsonxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ def convert_json(dir):
frametag = ''
framecount = 0

image_name = os.path.basename(data['meta']['image'])
if 'image' in data['meta'] and data['meta']['image'] is not None:
image_name = os.path.basename(data['meta']['image'])
else:
image_name = 'image_not_found'

#Get frame tags data
for frame in data['meta']['frameTags']:
Expand Down

0 comments on commit e83c473

Please sign in to comment.