Gimp-Forum.net

Full Version: Counting layers in a group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey people,
Is there a way to easily find out how many layers are contained in a layer group? I'm currently working on some files where I'm sorting my layers (up to some 2000 per file) into groups, and now I want to produce some statistics. I thought of deleting all other groups so the title bar gives me the number that I need, but it's a bit clumsy, and I just know I'm going to click "save" instead of "close" one day soon...

Thanks,
Akir
I dare say someone will come up with a script that does the job. I had a look around but nothing obvious.

Similar principle to the one you are already using, except drag the layer group into the tool bar (wilbur section) to open as a image.

[attachment=1451]

The new image layers minus one for the quantity.

[attachment=1452]

temporary, now close it Wink
My ofn-dump-layer-hierarchy script will dump the hierarchy as a tree to the error console. You can either use the output to count things outside of Gimp, or modify the script to suit your needs.
That is indeed a lot more elegant than my solution, thanks! I can definitely use that until someone comes up with a script. Smile

edit: synchronized posting - thank you too, Ofnuts!