Hi All,
I couldn’t seem to find anyone who had made one of these so I made one.
https://gist.github.com/03a781663a69763d5605.git
It basically takes the physical folder names (lowest level) and uses those to create the sequence data for the images contained with that folder. So for example if you have the following folder structure in texture packer :-
Animations
|
->Walk
| |->fred_01.png
| fred_02.png
|->Run
|->fred_01.png
fred_02.png
The exporter will create the following sequence data
SheetInfo.sequenceData =
{
{ name=Walk,
frames={ 1, 2, },
time=120
}
{ name=Run,
frames={ 3, 4, },
time=120
}
}
Have fun and let me know if you need any help setting it up. I’m also open to suggestions for improvements.
Oh and before I forget the template adds a SheetInfo:getSequenceData() function to retrieve the sequence data for your sprites.