k-kawa / aseprite

Automatically exported from code.google.com/p/aseprite
0 stars 0 forks source link

XML export feature for animations #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What do you need to do?
Export animation info in an xml format for an animation created in ASE and 
batch save all the frames of an animation as separate images.

How would you like to do it?
Add an export animation to the file menu.

P.S.
awesome program I really appreciate the hard work. I'd
equate this to the Musagi of sprite and animation tool, I'm surprised
it's not recommended in the indie community more. Keep up the good work =]

Original issue reported on code.google.com by jcso...@gmail.com on 11 Mar 2011 at 10:41

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 11 Mar 2011 at 11:39

GoogleCodeExporter commented 8 years ago
Is there a specific XML format in mind, if not could this be JSON, which is 
faster/easier/lighter to parse and use more commonly for modern animation.

Original comment by chriswil...@gmail.com on 25 Nov 2013 at 10:23

GoogleCodeExporter commented 8 years ago
Not yet, if you have some ideas for different JSON formats, it would be great. 
I remember to see that there are a lot of different formats (mainly for texture 
atlases).

More info:
http://www.codeandweb.com/texturepacker
http://renderhjs.net/shoebox/

TexturePacker uses Grantlee templates to export files, so that could be handy 
to support several formats (XML, JSON, YAML, etc.)

Original comment by davidcapello on 25 Nov 2013 at 7:07

GoogleCodeExporter commented 8 years ago
More: http://esotericsoftware.com/spine-json-format/

Original comment by davidcapello on 25 Nov 2013 at 7:12

GoogleCodeExporter commented 8 years ago
Export frame timing would be soooo nice !
We're using Starling format(Sparrow), but we will use a custom parser so any 
format would be great  
at the end we want the tile sheet(png) its atlas (XML/JSON Whatever)and the 
animation timing(XML/JSON/whatever).

By the way thanks for this amazing soft!

Original comment by Carduus....@gmail.com on 29 Nov 2013 at 1:42

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 5 Dec 2013 at 7:09

GoogleCodeExporter commented 8 years ago
I've committed something in 'dev' branch to start with: 
https://github.com/aseprite/aseprite/commit/f531f6d0d08c91da483ca36041e26f245bbe
9521

You are able to export one file (or several files) to one texture file. For 
example:

  ./aseprite.exe --batch --sheet out.png --data out.json test.ase

This load test.ase file, and generates a couple of files. The sheet, out.png, 
contains all frames in a row (like a sprite sheet), and metadata, out.json, has 
all the animation info (look the attached file in this comment).

Also you can use something like this:

  ./aseprite.exe --batch --sheet atlas.png --data atlas.json images/*.png images/*.ase

That will create a texture atlas with all your images and animation frames. 
(Sorry but the layout of images is really simple at the moment, there are a 
waste of space in the texture.)

Please make comments about what you think, and I'll be uploading a beta for 
Windows today (it is really unstable).

Original comment by davidcapello on 8 Dec 2013 at 11:27

Attachments:

GoogleCodeExporter commented 8 years ago
I've release a command line version beta for Windows 
http://www.aseprite.org/cli/
You can try it and write comments here.

Original comment by davidcapello on 13 Dec 2013 at 12:23

GoogleCodeExporter commented 8 years ago
Issue 179 has been merged into this issue.

Original comment by davidcapello on 24 Feb 2014 at 11:15

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 10 Apr 2014 at 1:06

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 10 Apr 2014 at 1:09

GoogleCodeExporter commented 8 years ago
Could you add an "animationName" parameter pbly. using the new Tags to the json 
file? It would really ease my workflow. Wonderful feature and wonderful update. 
All hail Aseprite! :)

Original comment by tube.for...@gmail.com on 16 Apr 2015 at 7:26

GoogleCodeExporter commented 8 years ago
Hi there! the new issue tracker is here: 
https://github.com/aseprite/aseprite/issues/17

Follow this issue: https://github.com/aseprite/aseprite/issues/607

Original comment by davidcapello on 16 Apr 2015 at 7:32

GoogleCodeExporter commented 8 years ago
Allright, thanks!

Original comment by tube.for...@gmail.com on 16 Apr 2015 at 8:11