Gimptalk - Premier Gimp Community: How to select/move a selection in multiple layers at the sam - Gimptalk - Premier Gimp Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to select/move a selection in multiple layers at the sam

#1 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 16 December 2006 - 09:29 PM

I couldn't find anything searching for "multilayer select" or similar, so I ask here.

Say I have an image with multiple layers; like for example (ordered as in layer list):

layer 5: Highlights
layer 4: colour shadows
layer 3: colour base
layer 2: sketch
layer 1: Background

Say I was painting a face for example, and having done colouring and all, I realize I want the mouth to be moved a bit. Now, I can select e.g. the sketch of the mouth (in layer 2) and drag it a bit upwards. Problem is that all the colouring of the mouth lies on other layers and won't follow when I move, and flattening the image is not an option if it's a work in progress. I suppose one could save the selection as a layer mask or something, and drag each layer into position individually, but what a hassle!

Is there a way to "deep select" something in GIMP, so that I can move the mouth and all its colouring (say, the selected part of layers 2-5 above) at the same time?

.
Griatch
0

#2 User is offline   stefcho_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 3,178
  • Joined: 10-June 06

Posted 16 December 2006 - 09:34 PM

Phew lets see...
First dup scetch. hide one of them. Select the mouth and move the sketch first.
Then on the second scetch (untouched one) select mouth again and on color move mouth. I think that should work :). Then delete one of the scetches (the untouched one) :)
Posted Image
I know, I'm good :)
0

#3 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 16 December 2006 - 09:48 PM

Hmm ... that works, but it still requires matching many different moves into a final result. This can be done if the sketch and colouring is simple, but if the shades and colour layers are very subtle it becomes very hard to match them all back together in the end.

Like this:

Base layout sketch

Posted Image

Light base

Posted Image

Colour highlights

Posted Image

Colour tint

Posted Image

Combines to final result:

Posted Image


See my problem with moving selections within these layers individually? ;-)
.
Griatch



Upload Picture with PicTiger
0

#4 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 16 December 2006 - 10:37 PM

Maybe if you visualize the grid or you set some guide that will help
0

#5 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 16 December 2006 - 11:18 PM

So there really is no way to deep-select then and move several layer's selections at the same time?
.
Griatch
0

#6 User is offline   Fatal Edge 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 3,053
  • Joined: 11-June 06
  • LocationStaffordshire, England

Posted 16 December 2006 - 11:31 PM

Not that I know of.

Best way I know of is to select each area to move and float each selection and set as new layer each. Then once all selected areas are as new layers you could click the square next to the eye on each layer to link them and move the layers so they all move as one. Then you just merge them back down afterwards.

Awkward I know, but they would all move together then.

0

#7 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 17 December 2006 - 12:58 PM

@Insanity Prevails

Hmm, yes that would indeed work. Thanks! I couldn't be bothered to do that for many layers though, so one should probably script it, something which should be doable. Haven't worked in Scheme for so long though ... time to brush off the old procedural programming skills.
.
Griatch
0

#8 User is offline   swmiller6 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,161
  • Joined: 25-July 05

Posted 17 December 2006 - 02:18 PM

Can't you just link the layers you want to move?

Edit--
Sorry I did not realize you had other things you did not want moved on the same layer as the coloring for the mouth..

swmiller6
Posted Image

Thats right it's a Fencepost original!!! ha ha and it's all mine..
0

#9 User is offline   Fabozi 

  • Member
  • PipPip
  • Group: Members
  • Posts: 215
  • Joined: 13-August 06

Posted 17 December 2006 - 02:33 PM

Posted Image

I think linking is eough you can move as many layers as you want at the time.
Posted Image
0

#10 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 17 December 2006 - 09:36 PM

@Fabozi

As swmiller already noted, that method only works for entire layers, not for selections within a layer.
.
Griatch
0

#11 User is offline   saulgoode 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 5,324
  • Joined: 22-August 05

Posted 18 December 2006 - 12:24 AM

http://flashingtwelv.../deep-float.scm

Script-Fu->Float Linked Layers - "Float the selection on each linked layer, creating a new one above it"

Script-Fu->Merge Down Linked Layers - "Merge each linked layer with the one directly beneath it"

Behavior may be anomalous for certain layer blend modes.
Everybody makes their own fun. If you don't make it yourself it's not fun, it's entertainment.
0

#12 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 19 December 2006 - 07:45 AM

@saulgoode

Thanks a lot! The float layers script is very useful indeed! Already has had good use for it.

The merge down gives me an error; haven't had time to look at what's wrong, but it's one of those opaque Scheme error messages.

As for the issue of getting anomalies when merging down layers, that comes from the final layer going into "normal" mode reagardless of what modes the original two layers had (strange feature, coming to think of it). In this particular case I would think it could tbe avoided, since you know you'll always want to retain the original layer's mode (at least if using these two scripts together). Maybe one could save that mode before merging and and set it afterwards?
.
Griatch
0

#13 User is offline   saulgoode 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 5,324
  • Joined: 22-August 05

Posted 19 December 2006 - 08:35 AM

Quote

The merge down gives me an error; haven't had time to look at what's wrong, but it's one of those opaque Scheme error messages.

Please let me know what the error is when you get the chance (hopefully, it is a "warning" and not an "error").

Quote

As for the issue of getting anomalies when merging down layers, that comes from the final layer going into "normal" mode reagardless of what modes the original two layers had (strange feature, coming to think of it). In this particular case I would think it could tbe avoided, since you know you'll always want to retain the original layer's mode (at least if using these two scripts together). Maybe one could save that mode before merging and and set it afterwards?


My script attempts to do precisely what you propose: it sets the mode of the floated layer to be the same as that of the original, and also restores the mode of the merged result. The reason I warned of possible anomalies is that I discovered what seems to be a bug in how layers are combined in the "Addition" mode. I will describe it below that you might be aware of it -- and also that you might report to me if you encounter any other anomalous behavior when combining other modes.

[*] Create a new image with two transparent layers, both set to "Addition" Mode
[*] On the top layer, make a selection and fill it with a color
[*] Turn off the visibility of the bottom layer (the contents of the top layer disappear)
[*] Move the bottom layer to the top (they reappear)
Everybody makes their own fun. If you don't make it yourself it's not fun, it's entertainment.
0

#14 User is offline   Griatch 

  • GT Administrator
  • Group: Administrators
  • Posts: 5,345
  • Joined: 27-November 06
  • LocationSweden

Posted 19 December 2006 - 10:08 AM

@sauldgoods

Your scripting work on this is appreciated. I'll try to get you a clearer error description when I can. :-)

As for the addition mode, as I recall it, setting both layers to Addition will not show any results for me at all. You can fill both layers as much as you want and nothing will be shown. Same is true trying to add on top of an empty transparent/background "normal" layer. I agree this is strange; I would expect this from the "multiply" mode (mult anything with 0 returns 0 after all), but not from Addition. It would seem adding on top of zero colour values is not allowed; you need to have at least some colour value on the underlying layer before the addition layers work.

.
Griatch
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic