http://www.personal.psu.edu/zez1/blogs/my_blog/2011/05/scripts-4-photoshop-file-sequence-to-layers-to-sprite-sheet.htmlThe code on this page, when cols is changed 1 one, works for making animations into sheets for Minecraft. I'm trying to get Port to help me improve the code, though. I want it to also make a .txt file with the correct timing for frames, and maybe even recognize repeat frames and use the .txt instead of the image to repeat them. Unless someone else could figure out that code.
Edit:Basically, the functionality I need for this script is this:
1: Use the animation to obtain the timing for each frame and adjust it for a .txt of the animation.
2: Recognise if there are duplicate frames, and omit them from the actual image. Instead, use the .txt to reuse the frames.
For example, look at the panda emoticon:

The final .gif which we use is five frames. However, only two are unique. The timing in seconds is 0.15 and 0.05 twice, with the last frame being 1. The script would have to be two frames, generating a .txt which would resemble something along the lines of "0*3, 1, 0*3, 1, 0*15" (Not sure about the timing ratios for this, sorry...).