FreezingMoon / Spritify

Add-on that converts rendered frames into a sprite sheet once the render is completed, so that you can have a nice animation for games, apps or websites
https://AncientBeast.com
59 stars 21 forks source link

possible feature: export NLA/frame animation info as text #3

Open TehBucket opened 9 years ago

TehBucket commented 9 years ago

It would be very useful to streamline the art-to-game process even further by exporting animation data along with sprites, so that developers could import information like start and end frames of the sprites, where animations start and stop, and sprite dimensions.

Example: thuggun 0, 49, walk 49, 86, shootGun 86, 91, pain1 91, 96, pain2 96, 120, idle 120, 129, DIE

When I was exporting lots of sprites with spritify, I wrote a seperate script to print this information, I hope it helps if you end up adding this feature. http://pastebin.com/yuF8SkZz

DreadKnight commented 9 years ago

The addon was made for my project https://github.com/FreezingMoon/AncientBeast on which I was planning on having each action as a separate sprite sheet, but the more I get into coding, the more that seems like bad practice, so your script will definitely come in handy to stream line the process, cheers :) Glad you found this addon useful; wish github wouldn't treat all conversation as issues xD

DreadKnight commented 9 years ago

@Fweeb feel free to integrate this feature, seems very useful.

Fweeb commented 9 years ago

Looks like a useful addition (apologies for the late response). Would it be most useful to have this metadata as a same-named text file or embedded in the image as metadata. The latter is a touch more complicated as each image format tends to handle embedded metadata differently, but maybe something could be done using XMP.

DreadKnight commented 9 years ago

The first approach is the way to go as metadata is pretty obscure stuff when it comes to game dev and it's not used evenly between different operating systems and desktop environments.

2015-01-22 23:01 GMT+02:00 Jason van Gumster notifications@github.com:

Looks like a useful addition (apologies for the late response). Would it be most useful to have this metadata as a same-named text file or embedded in the image as metadata. The latter is a touch more complicated as each image format tends to handle embedded metadata differently, but maybe something could be done using XMP http://en.wikipedia.org/wiki/Extensible_Metadata_Platform.

— Reply to this email directly or view it on GitHub https://github.com/Fweeb/blender_spritify/issues/3#issuecomment-71097775 .

Dread Knight about.me/DreadKnight [image: Dread Knight on about.me] http://about.me/DreadKnight

http://about.me/DreadKnight