Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Export all layers to GBR files script request (SOLVED)

Mon Jul 01, 2013 9:40 pm

I am requesting a script that will select every layer in my image and export each one as a colored OR grayscale brush.
I would also like to name the first brush and have all the others get a new name...like this
flower-brush_RD-1 <-- i name first brush
all other brushes get named
flower-brush_RD-2
flower-brush_RD-3
ect..ect..ect
I looked online for such a script but couldn't find one.
In short a batch layer to GBR script.
Alas scripting this is beyond my scope of scheme code understanding.

Thanks!


This would be very handy when using the ABR loader filter and changing each image to my liking then changing each layer to a gimp brush file. :bigthup

Re: Export all layers to GBR files script request

Mon Jul 01, 2013 11:09 pm

Found this one
http://registry.gimp.org/node/24606

But it saves a directory of images as GBR files.

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 1:46 am

I'm glad you found it, I noticed it used 'file-save' whereas I think 'gbr-save' may have been better

I think as it is the script could be used to save a file to any other file extn type (something worth remembering)

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 2:17 am

Thanks Graechan.
The only problem with this script is it takes all the png images and gives them white bg's before converting to GBR. So they are no longer useful as a brush imo. :)
hrmmm...maybe if i save as a GIF first? Seems like PNG would allow alpha though.

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 2:42 am

Re-inventing the wheel? Although, a very new wheel ;)

http://registry.gimp.org/node/28268

Image

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 2:49 am

I think the 'gimp-file-save' format is doing this maybe saving as gbr will fix 'file-gbr-save'

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 3:00 am

opening a set of .abr brushes, with abr.exe, saving them as .xcf files, giving them as input to batch_brushes will convert all to .gbr, with transparency

Re: Export all layers to GBR files script request

Tue Jul 02, 2013 3:47 am

Richard that worked! :)
Thanks for the information on the script.

Thanks dinasset.

Re: Export all layers to GBR files script request (SOLVED)

Sat Aug 14, 2021 12:22 pm

Where could I find this GBR conversion script?

Re: Export all layers to GBR files script request (SOLVED)

Sat Aug 14, 2021 12:58 pm

LucivaldoSP wrote:Where could I find this GBR conversion script?


Which one? The export layers python plugin has been updated and you can find it here: https://github.com/khalim19/gimp-plugin-export-layers

That will export layers to all gimp file formats including gbr.

If it is a PS .abr brush, then the plugin to open one as layers is here: https://www.gimp-forum.net/Thread-Batch ... 3#pid14963

Re: Export all layers to GBR files script request (SOLVED)

Sat Aug 14, 2021 1:08 pm

Marvel, @rich2005. Thank you very much. You are always very considerate.
Post a reply