Gimp-Forum.net
split selection in all layer - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: split selection in all layer (/Thread-split-selection-in-all-layer)



split selection in all layer - ldanes - 09-08-2020

I would like to know if there is any way to select the same shape of an image in all layers and then cut it and preserve it from changes. I expose my situation:

I want to erase the background behind the character, I am editing a gif file using the ofn-layer-tiles plugin and erasing the background with the color to alpha tool and the eraser. All very well until I realized that I cannot erase blue and white pixels from the background without also erasing them from the character (eyes and clothes). Erasing with the rubber layer by layer has been difficult for me and I was wondering if there is a way to "protect" the character by removing it from the selection or cutting it, because it is a static image, I share the progress that I have of the image now and also the original image:https://i.imgur.com/6pX6Z90.gif and original https://i.imgur.com/gDRIbQX.mp4
I hope I have been clear and can help me
Translated by Google translator


RE: split selection in all layer - Ofnuts - 09-08-2020

- Make a selection on the character (or anything you want to protect)
- Select>Save to channel: this saves the selection mask as a channel (see channel list)
- When you make a color selection, go to the Channels list, right click on the saved selection, and Subtract from selection: now you selection is whatever you selected minus anything in the character.

Note that the selection can be restricted to the sensitive parts: eyes and dress.

If you use ofn-tiles to work on a tiled image, you can
  • create the selection on a single frame in a distinct image (that image should be the size of a tile in the tiled image, and framed the same way).
  • Select>Save to channel
  • Make the channel the active "drawable" (click on it in the channels list)
  • Select>All, Edit>Copy
  • Open the "tiled" image
  • In the Toolbox or the Patterns list, select the "Clipboard" pattern
  • Layer>New layer, and select the Pattern fill (you can also create a blank layer, and then use the bucket-fill in "Pattern" mode). In both cases you should end with the mask created in the frame image replicated over each tile.
  • Open the Channels list
  • Drag any of the R,G,B channels (they are all identical anyway) to the list below to make a copy, and optionally rename the copy.
  • You can now use that channel as a subtraction mask asĀ above



RE: split selection in all layer - ldanes - 09-09-2020

(09-08-2020, 06:42 AM)Ofnuts Wrote: - Make a selection on the character (or anything you want to protect)
- Select>Save to channel: this saves the selection mask as a channel (see channel list)
- When you make a color selection, go to the Channels list, right click on the saved selection, and Subtract from selection: now you selection is whatever you selected minus anything in the character.

Note that the selection can be restricted to the sensitive parts: eyes and dress.

If you use ofn-tiles to work on a tiled image, you can
  • create the selection on a single frame in a distinct image (that image should be the size of a tile in the tiled image, and framed the same way).
  • Select>Save to channel
  • Make the channel the active "drawable" (click on it in the channels list)
  • Select>All, Edit>Copy
  • Open the "tiled" image
  • In the Toolbox or the Patterns list, select the "Clipboard" pattern
  • Layer>New layer, and select the Pattern fill (you can also create a blank layer, and then use the bucket-fill in "Pattern" mode). In both cases you should end with the mask created in the frame image replicated over each tile.
  • Open the Channels list
  • Drag any of the R,G,B channels (they are all identical anyway) to the list below to make a copy, and optionally rename the copy.
  • You can now use that channel as a subtraction mask asĀ above

I really appreciated that you take your time to explain it, works like a charm!