Hello, I can't find a way in Gimp 2.4 to delete all invisible layers, is there one?
When working with a slightly complex file I use to have multiple layers which I show, hide and duplicate as needed. After a while my layers dialog gets cluttered and I need to delete layers I don't need anymore, most of these layers are invisible and going one by one to delete takes much time, an option to remove all invisible layers would be great.
There's an option to delete invisible layers on "Image > Merge Visible Layers" but this, as the name says, merges all other layers.
Any ideas?
Thanks!
Page 1 of 1
How to delete all invisible layers in Gimp 2.4?
#2
Posted 03 September 2008 - 05:08 PM
Here is a simple Script-fu which adds a command to the bottom of your Image menu which will delete hidden layers: http://flashingtwelv...lete-hidden.scm
Everybody makes their own fun. If you don't make it yourself it's not fun, it's entertainment.
#4
Posted 03 September 2008 - 08:00 PM
Download the file and save it to your GIMP scripts folder (information about data folders and where they are located on your computer can be found at the bottom of this page of the GIMP Manual). The next time you open GIMP, the command will be there at the bottom of your "Image" menu.
You don't really need the Script-fu menu back. The functions that used to be in the Script-fu menu (in older versions of GIMP) have been relocated to other menus. You can add a Script-fu menu if you like (by installing a script which is placed in the menu), but it is not necessary.
Quote
and how do i get script-fu back
You don't really need the Script-fu menu back. The functions that used to be in the Script-fu menu (in older versions of GIMP) have been relocated to other menus. You can add a Script-fu menu if you like (by installing a script which is placed in the menu), but it is not necessary.
Everybody makes their own fun. If you don't make it yourself it's not fun, it's entertainment.
#5
Posted 03 September 2008 - 08:06 PM
I don't see a file in there, more like a source code-ish thingy
#6
Posted 03 September 2008 - 10:06 PM
Right click on the link and select save as. Save it in your scripts directory, which on my machine is
C:\Program Files\Gimp-2.4\share\gimp\2.0\Scripts
but this may vary depending on your system.
Greg
C:\Program Files\Gimp-2.4\share\gimp\2.0\Scripts
but this may vary depending on your system.
Greg
#7
Posted 04 September 2008 - 02:02 PM
Fantastic! This is exactly what I was looking for and works like a charm.
Thanks Saulgoode!
Thanks Saulgoode!
#8
Posted 28 July 2009 - 06:38 PM
The above script doesn't work in version 2.6 I have modified it to work. All you need to do is change the lines (lines 34-36 when I downloaded it)
TO
And it will work on version 2.6
More info here http://gimp.org/rele...s/gimp-2.6.html look for the section on backwards compatibility.
(let* (
(hidden-layers)
)TO
(let* (
(hidden-layers 0)
)And it will work on version 2.6
More info here http://gimp.org/rele...s/gimp-2.6.html look for the section on backwards compatibility.
Share this topic:
Page 1 of 1

Help













