grapefrukt/grapefrukt-export

Export Keyframe data only?

Opened this issue · 1 comments

This project is truly awesome! I'm glad I found this. I was looking through the examples and messing around a bit and noticed that your XML export seems to bake the keyframe data to standard frames. Is it possible to export only the keyframes, and have whatever run-time engine interpret the tweens?

Thanks!
The xml export is indeed for all frames which is a bit wasteful, but it was also very easy to implement. It should be possible to parse out keyframes using the as3swf library (which is already used for svg-export), but it will be more complicated than the current code.

It might even be possible to use as3swf to figure out where and for what they keyframes are placed and then use the current method of parsing values.

Here's an example of timeline reconstruction using as3swf:
http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/

I'll try and look into this whenever I have some time to spare.