It is currently Mon Jul 22, 2024 8:36 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 12:57 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
I know Saul wrote a script to copy a mask to all visible layers.Can i use that to copy a selection to all visible layers also? :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 7:04 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I don't think so, no without changes

instead, from the descrition this may solve
http://www.registry.gimp.org/node/24270#comment-11420

(never used i only read the author comment )

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:01 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
I am thinking if i create a mask that has the same shape as the selection i should be able to transfer that shape to all layers with the copy mask script.Then i just have to figure out a way to select all the masks at once.

I have that script PC it apparently doesn't have the ability to create multiple selections either.
I would like to be able to have a tool that i can use to create a selection on a layer, copy that selection to multiple layers, and then manipulate those selections all at once.

I can't believe Gimp doesn't have an option to do this it seems so simple.
Copy selection to all visible layers.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:07 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
HAH!
http://registry.gimp.org/node/24270 :)

found one i think

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:08 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
You can excuse me if this sounds absurd but...

What if you saved multiple selections as paths, then in Path dialog, merged all your selections to one single path, then activated the selection? Would that work?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:16 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
I can't believe Gimp doesn't have an option to do this it seems so simple.
Copy selection to all visible layers.


To be honest i never felt the need to paste the same thing in the same positions on all layers (or on all visible layer )

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:19 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
Stupidly i have found this already in my collection of scripts and already installed.Can't believe i missed this. :lol
Another one from Saul - should be sg-deep-float-copy.scm :)

thanks Saulgoode!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:25 pm  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
BTW
to be clear you wrote "copy selection" but you mean "paste the content of the selection" or "paste in the selection"...correct ?

because the selection is already and always the same for all layers of the same image

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:30 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
The reason i wanted to know was because a fellow on the gimp registry forums was asking how to manipulate multi selections to color them all at once on separate layers.I think this may be what they meant. :)

Mahvin i am talking about many selections on separate layers (time consuming)
I wanted to be able to make one selection on one layer using the color tool or another selection tool.
Copy that selection to all visible layers - then do what ever i want to each layer all at once.
Like say color them all red, or fill with the same gradient or pattern.Or turn them all into paths.Or even masks.
This would have many, many uses i think.Quick color fill for animation frames for 1?

Pretty sure Saulgoodes script does what i need though.Looks like it takes the selection, copies it to floating layers and then merges back into those layers.

PC what do you mean by the selection already is in all layers of the image?
If i create a selection in one layer and fill it yes i can select another layer and fill it select another fill it.
I want to be able to fill one selection and have all of them fill at once.
Hope you understand what i mean now.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:43 pm  (#10) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I do but you ?

what i mean is that the selection is not a characteristic of a layer but of the whole image.

so if a area is selected in 1 layer is already selected in all the other layers

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:46 pm  (#11) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
...so you have no to worry about selection only to give the same command to all visible layer---
then if requested load another selection (from a channel or a path) and repeat the loop...

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 9:57 pm  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i should have no split my reply in 2 part i hope you read them togheter

then doesn't exist a thing as multiple selections:
selection may be complex, may include island, may be separated by unselected area but is only 1 (for each image)

If more then 1 selection is needed only 1 maybe active, the other should exist only stored in additional channels.

I bet you already know but since this confused me for long i hope you don't mind if i clear the concept

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 10:35 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
Yup i get what you mean.you can then by selecting each individual layer manipulate that selection.But that seems so time consuming if you just want to color all the same selection like say a hat band that stays in the same position in an animation on 120 layers.This would be much faster.Select the hat band color - make visible all layers you want colored by clicking (shift + eye next to layer) - or if quicker just make invisible all layers you do not need colored invisible.

Then you just need to select one hat band area you need colored - run the color selection to all visible layers script - your done 120 layers all at once. :)

Sadly i must be running Sauls script wrong -
I created one layer with a gold pattern - i selected just the pattern.
I created 3 more transparent layers. - linked all the 3 layers
Ran float linked layers copy - all the floating layers appeared
Re-selected the layer with the pattern selection i wanted copied
Ran float layer paste to merge them all -they merged down without the pattern copied.

Did i not run the script correctly?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 10:38 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
I did notice when i ran float linked layers copy the pattern wasn't on any of those floating layers.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Mon Apr 18, 2011 11:56 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
The "deep float" script was not intended for the purpose you describe. It was designed to move an object that appears in each frame of an animation to a different location in the frames.

If you want to use an existing script to copy the contents of the selection to each of several visible layers, I might suggest using the "Overlay Background" script, after first pasting your selection as a new layer ("Edit->Paste As->New Layer") and lowering the new layer to the bottom of the layerstack ("Layer->Stack->Layer to Bottom"). Afterward, you will need to delete the bottom layer. (If anyone should care to do so, it would be fairly trivial to derive a script that performs these additional steps automatically.)

Note that you may need to grab an updated version of the script; prior to January of this year, the script did not honor layer visibility.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: copy a selection to all visible layers
PostPosted: Tue Apr 19, 2011 12:40 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14720
Location: USA
Oh i could give myself a facepalm right now Saul.I never even thought of the overlay background script that should work excellent. :)

Thanks for your idea.

EDIT: worked excellent
thanks again my friend!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Is it possible to make a new path from the visible?

5

No new posts Attachment(s) Path copy rotate shift plus + Path copy rotate shift walk Play

79

No new posts Attachment(s) How to keep Tool Options dialogue permanently visible

3

No new posts How to merge down layer copy

2

No new posts Copy Layer Group (SOLVED)

0



* Login  



Powered by phpBB3 © phpBB Group