It is currently Wed Aug 05, 2026 7:56 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 3:15 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12824
GIMP Version: 2.8
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Intermediate Level



If I want to apply a layer effect, say lighten, to all layers below the top layer and merge the result to each individual layer, is there a Script-fu that can do this? Don't believe the Layer effects Script-fi (and subsequent python plugin) can do this. I don't want it to be limited to lighten. What would be cool is to assign a layer effect on the top layer then run the Script-fu which will apply that effect to all layers below merged to each layer. Anyway, hoping someone here can answer this one (or help). :)

_________________
Lyle

Psalm 109:8

Image


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: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 3:30 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
If you have GAP installed then the added command, "Filters->Filter All Layers" accomplishes what you wish (applying an arbitrary filter upon each layer).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 4:29 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12824
I've been avoiding installing GAP Saul, but I now have a reason to do so; thanks for that info. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 5:16 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12824
Was able to use grad to change all the colors to white, but there is no option that I can find that can apply a layer property like grain merge to each layer unfortunately. Oh well; half of the work that I would have had to do is elimininated anyway. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 5:55 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Yes there is ,still in Gap, Frame Modify see in its layer options subset

Using Gap has more sense id you have similar images , loaded as frames and you want apply similar command to all (as merge down all top layer in Grain Merge mode )

And here the problem is that all frames should have exactly same size


Thinking better this should work well to clean up and rescale all my fractal in batch i think you give me a nice idea

but i may give you a even esier one, just use gmic,
the plugin can't be flexible as the command line version that for sure may do in a flash all what you need--- but still has a lot of different input and output options that may help to automate a lot of process

I like the combination, GAP speed up work on series of images , and may convert multilayer image in frames and vice versa to all frames, and may apply standard gimp filters..and gmic may automate same operation on all layers, or all visible/invisible and output as replacement, or as new layers or new images

_________________
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: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 6:01 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
@ Rod
All gmic operation may be applied to all layers (or all visible/invisible) with various possible output (replacement, new layers/new images)
I don't think may do something specific on layer group, i am not even sure how it read layer group, i never try.

But as far the input is all layers can be done with no complication

_________________
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: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 6:30 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12824
I did try g'mic already PC, but after 10 layers it stopped for whatever reason (i.e, started with 27 layers but ended with just 10 after gmic operation). Weird. G'MIC would have been a nice way of doing this but alas, no dice (for me anyway). Will check the layer options (didn't know this; never used GAP before). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 10:16 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2011
Posts: 180
I already mentioned here:
viewtopic.php?f=9&t=4205

I found this where you could make a text layer (or any layer) and then add it to all layers. Gimp 2.7 and up but would like it for 2.6.

Combine Active Layer with all Layers:

layer-combine-with-all-layers.scm
http://registry.gimp.org/node/26135


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 10:56 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16149
PhotoComix wrote:
@ Rod
All gmic operation may be applied to all layers (or all visible/invisible) with various possible output (replacement, new layers/new images)
I don't think may do something specific on layer group, i am not even sure how it read layer group, i never try.

But as far the input is all layers can be done with no complication


What do i have to do with this thread? :)

_________________
Image


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Thu May 24, 2012 11:08 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
lylejk wrote:
If I want to apply a layer effect, say lighten, to all layers below the top layer and merge the result to each individual layer, is there a Script-fu that can do this?


I believe I may've misconstrued your original question. If by "layer effect" you mean "blend a layer with a certain blend mode" then my Overlay Background script might be of use (it respects the layer mode of the layer being overlaid).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Apply layer effect to all layers below.
PostPosted: Fri May 25, 2012 1:02 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12824
I did see that thread Barbie and it was successful for creating multiple layers for a single input layer, but not for actually blending a layer mode like Grain merge to with target layer.

Thanks for that link Saul; might try it later, but I did go ahead and manually did what I wanted an auto-script to do, but the result didn't come out the way my mind's eye thought it would. Still, I'm keeping GAP now that I got a 64-bit version that appears to work in GIMP 2.8. I'm not into animations though, so don't think I will be using it much. My motivation was with brush creation (remember the recent metal rope thread recently? lol). I'm surprised how hard it is to create a gih and make it do exactly what I wanted it to do w.r.t. a rope brush. Only partially successful. Oh well; I do like to complain. ;)

:)

_________________
Lyle

Psalm 109:8

Image


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group