If you'd like to upload plug-ins, please create an account below. Otherwise (e.g. for download or commenting) you do not need one! Enjoy :-)
LayerGroups is a comprehensive layer groups subsystem for GIMP. It allows the creation of groups and subgroups of layers without limitation, based on the layer names. It allows you to hide or show many layers simultaneously, link or unlink them, rename them, delete them, duplicate them in the same image or to another image, move them up or down in the layer stack (raise or lower) in relation to a specific reference layer, generate external image files (for example png, gif, jpeg etc) from each of the layers of the group, and several other operations.
The selection of layers for the group can be enhanced with filters, for example only layers that are linked, or contain a specific keyword in the name.
LayerGroups contains a built-in help system that works two ways: when you are on the GIMP menu system with the mouse above one of the menu options you get a multi-line window with help and instructions on how to use the specific functionality and when you are in the dialog box where you enter the parameters, there is a menu that you can open to read the same help text. This help system is prepared in such a way that it can be easily translated into other languages, like French, German, Spanish, Portuguese, Dutch, etc.
LayerGroups has been thoroughly tested in a project with images containing hundreds of layers where most of the mentioned layer group functionality was required. As a useful spill off, the LayerGroups script contains many generic script-fu functions that could be very useful in other scripts for GIMP. It has been tested under Windows XP and Vista with Gimp Portable version 2.6.6 and under Ubuntu Linux, Gimp version 2.6.6. To install the script, copy the script file "mig-gimp-layer-groups.scm" to the scripts directory and from GIMP execute the menu option Filters->Script-Fu->Refresh scripts. You should get a new main menu option labeled 'LayerGroups' between 'Filters' and 'Windows'.
The new version 1.0a has a built in option to allow the LayerGroups subsystem to be placed under the 'Layer' menu of the Gimp image window. By the default you get a new 'LayerGroups' menu entry directly in the Gimp Image window. If you change the script file at line 35 - which contains the text '#f' in the first 2 characters - (change the 2nd character in that line from 'f' to 't') the 'LayerGroups' menu entry will become a sub-menu entry of the 'Layer' menu entry. Use any text editor to edit the 'mig-gimp-layer-groups.scm' file. For example, under Windows you can use NotePad to edit the file. Make sure the saved file maintains the extension '.scm'
This new version contains some bug corrections and new functionality. The new functionality includes 'delete linked layers', 'reverse the stack order of a layer group' and 'reverse the stack order of the currently linked layers'.
| Attachment | Size |
|---|---|
| mig-gimp-layer-groups.scm | 208.12 KB |
Comments
Problem with the menu
i had to download again, and i follow the suggestion to change f in t at line 35
It worked with a exception i still have a "Layer Group"
(Group not Groups) menu that contain only one voice (sort layer group )
how to move this last in layer menu ?
Not workig
I'm getting this error in console while running the Gimp:
Unable to read initialization file script-fu.initscript-fu-Warning: Error while loading /home/me/.gimp-2.6/scripts/mig-gimp-layer-groups.scm:
Error: eval: unbound variable: whilescript location under Ubuntu Linux
I have placed the script in the /home/me/.gimp-2.6/scripts directory under Ubuntu 9.04 and it worked without any problems.
The error that you describe indicates that your Gimp installation cannot locate the directory where the other scm scripts are located, and thus cannot load the script-fu.init script.
You can try to place the mig-gimp-layer-groups.scm script in the following directory (I am speaking about Ubuntu, it could be different in another Linux distribution):
/usr/share/gimp/2.0/scripts
This directory contains all other scripts, including the script-fu.init script that your installation is complaining about not being able to locate.
Make sure that the access rights for the file mig-gimp-layer-groups.scm are set correctly (see file Properties). This means that 'Group' and 'Others' must have the 'Read' access right.
.
Think I'm really going to like this - thank you
LayerGroups subsystem for Gimp
Cool
But i immediately edited the installation path in my copy i much prefer have the script in the Layer menu then create a new menu for it
Edit Installation Path
My menu bar is crowded too. Could we have a little more info as to how to do that? That is, get the script into the layer menu instead of creating a new menu.
Thanks
How to Edit Installation Path
oopss i cannot reply my message is truncated after line 4
How to move the LayerGroups subsystem to the "Layers" menu
In order to move the menu subsystem of the LayerGroups subsystem from the Image menu to the submenu “Layers” of the Image menu do the following:
1) Start a simple text file editor and open the “mig-gimp-layer-groups.scm” file located in the Gimp scripts directory.
2) Move downwards towards the end of the file and locate the first text line that starts with “(script-fu-register ”. This line should have as first parameter in the next line, between double quotes, the text "script-fu-gimp-layer-group-duplicate".
3) After this line starting with “(script-fu-register ”, locate the SECOND parameter between double quotes that begins with the text “<Image>/LayerGroups/”
4) Change this text to “<Image>/Layers/LayerGroups/”. Actually you are inserting “/Layers” after “<Image>”
5) Repeat steps 3 and 4 for all subsequent lines starting with “(script-fu-register ”
6) Save the modified file “mig-gimp-layer-groups.scm”. Make sure that the extension “.scm” has not been automatically changed to something else by your editor.
7) If GIMP is active, refresh the scripts sub-system by choosing “Filters->Script-Fu->Refresh Scripts” from the Gimp menu
8) If everything went well, you should now find the LayerGroups subsystem under the Layer menu.
New version has option to place LayerGroups under Layer
I have uploaded a new version of the script, which makes the description above obsolete. The new version (1.0a) has built in functionality to allow the 'LayerGroups' menu entry to be located under the 'Layer' menu entry of the Gimp image window. This can be done by changing one single character in the script.
Could someone share?
Hi!
I don't really understand what I have to do for having this under layer the layers menu.
Could you share the modified .scm please?
Please download the new version
Please download the new version 1.0a (uploaded June 30 2009) and then change '#f' to '#t' at the beginning of line 35 of the new script, in order to get the LayerGroups menu entry under the 'Layer' menu. See the new description of the script...