Gimp-Forum.net
Copying/exporting specific layers - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Copying/exporting specific layers (/Thread-Copying-exporting-specific-layers)



Copying/exporting specific layers - ebondream - 06-29-2017

Say I have an image with around 30 layers (experimenting with animations, hence the high number). I'd like to remove the last 12 layers and put them into a different image, so I can edit these two sequences independently, and then join them together again. Is there some way to do that that's less cumbersome than copy-pasting each individual layer?


RE: Copying/exporting specific layers - rich2005 - 06-29-2017

There will be a few ways, not really into animation, but first thoughts

Duplicate the image
Link the layers you want to delete - for your requirement I would bulk link shift-click on the link icon, then unlink the bottom twelve individually.

Then this script will merge all the linked layers (13 - 30)
http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-merge-linked

Delete the resulting merged layer.

edit: Another, probably better way

Again one of SG's scripts http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-group-linked-layers

Link the layers you need, Apply the script to create a layer group. Click drag the layer group to the top of the tool box to open as a new image. Same script will ungroup back to plain layers.


RE: Copying/exporting specific layers - rich2005 - 06-29-2017

An example using that last script

http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-group-linked-layers

video demo https://youtu.be/9cWNW_vufYA 4 minutes