Page 1 of 1

Gimp to CEGUI Imageset script!

Posted: Wed Jun 18, 2008 18:44
by lope85
Hi everyone,

I'm wondering how you actually create an imageset. Painting in the Gimp, exporting and then manually setting all the coords and sizes seemed to complicated (*). Therefore I wrote a little Script-Fu Script for the Gimp to help me with the creation of imagesets.

Image

This script uses the layer information (name, pos, size) to create the images in the .imageset. Offsets must be inserted manually later.


(*) Actually learning the SCHEME language and putting the script together in a lenghty trial-and-error-process wasn't that easy either.....

This script should run on any gimp 2.x installation (no perl or python required).

Please have a look and give me your feedback!
http://registry.gimp.org/node/6128

Posted: Wed Jun 18, 2008 19:15
by CrazyEddie
Wow! What a good idea :) I shall have a play with this tomorrow, I think.

With reference to your (*) point - yeah, but the good thing is that you only have to do that once (as opposed to manually creating an Imageset - every time). Once you have your script written it's all plain sailing from then on, so now put your feet up and have a :pint:

CE.

Posted: Sat Jun 21, 2008 10:13
by Pompei2
VERY good thanks a lot, you're the men ;)

Posted: Sat Nov 08, 2008 21:30
by jacmoe
Awesome!
Looking forward to giving this a spin! :)

Re: Gimp to CEGUI Imageset script!

Posted: Sun Oct 11, 2009 15:59
by emarcotte
Just writing to say this is an awesome script.

The only issue I had was that it seemed if I didn't have a trailing \ in the output path it didn't use the folder name but appended instead. Figured that out, and now all is well with the universe.