I’ve made a modification to Zak Zidik’s layers to spritesheet Photoshop script. His version just defaulted to 7 columns, but I’ve added a dialogue that lets you adjust it to however many columns you want.
I figured I’d put it here. layersToSprite.jsx Change the .jsx.txt extension to just .jsx and put it somewhere you can run it in Photoshop.