You are here

Sprite Sheet Toolkit

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
SpriteSheetToolkit.scm4.8 KB

Exports multiple animation frame layers into a single spritesheet.
Imports the spritesheet image, cutting it into multiple animation frame layers.
Switches back and forward between animation frame layers (hiding the others).
Based on SpriteSheet ( http://registry.gimp.org/node/20943 ) by brian.schultheiss.

1) To install, copy SpriteSheetToolkit.scm to {GIMP-HOME}\share\gimp\2.0\scripts\
2) Either close Gimp and re-open, or simply select menu: Filters > Script-Fu > Refresh Scripts
3) Import your spritesheet via Filters > Sprite-Sheet > Load Spritesheet...
4) Switch between frames using Filters > Sprite-Sheet > Next frame and Filters > Sprite-Sheet > Prev frame
5) Export your spritesheet via Filters > Sprite-Sheet > Save Spritesheet...

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

An attempt to save spritesheet gives
----
Save Spritesheet Message

Error while executing save-sprite-sheet:

Error: eval: unbound variable: gimp-item-set-visible
----

The script would appear to be written specifically for GIMP version 2.8 -- the procedure 'gimp-item-set-visible' was called 'gimp-drawable-set-visible' in previous versions.

After replacing "gimp-item-set-visible" with "gimp-drawable-set-visible" and
"(gimp-image-insert-layer anImage layr 0 0 )" with "(gimp-image-add-layer anImage layr 0)" - both load and save work.

2.8 is "stable" on the site, but not in repositories yet.

Also, maybe it's a good idea to add some note that sprites are assumed to be square? After looking at what it does, this becomes kind of obvious, but still. Until there's a good way to init widgets, anyway. :]

Subscribe to Comments for "Sprite Sheet Toolkit"