It is currently Thu Sep 24, 2026 10:53 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Plugin Filter all layers
PostPosted: Fri Sep 27, 2013 3:18 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
GIMP Version: 2.8.4
Operating System: Windows
GIMP Experience: Intermediate Level



I want to make a drop shadow in a series of layers.
When I call the plugin "Filter all layers" the Gimp plugin "drop shadow" is not showed at he menu path. How can I access the plugin dropshadow? Or how can I make drop shadow in several layers onlyone time?

_________________
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: Plugin Filter all layers
PostPosted: Fri Sep 27, 2013 4:43 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 21, 2012
Posts: 103
viewtopic.php?f=8&t=7789&start=0

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Fri Sep 27, 2013 5:05 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
The problem is that Drop Shadow is a script and not a plug-in. Unfortunately, GAP is only able to apply plug-ins to an animation (it can't apply either scripts or tools).

You can, nonetheless, add a drop shadow to your layers by following a few (relatively) simple steps.

  • "Video->Split Image To Frames" to produce a sequence of frames with which to work. Let's call this new image the OBJECT image
  • "Video->Frames Convert" on the OBJECT image. Specify a new name with an ".xcf" extension and uncheck the "Flatten" box. This will produce a copy of all the frames in the OBJECT image. Let's call this new image the SHADOW image
  • In the SHADOW image, perform "Video->Modify Frame" and select the "Apply Filter on Layer(s)" function. In the dialog that appears, choose the 'plug-in-wr-color-levels' and click on the "Apply Constant" button.
  • In the "Plug-in Colors Adjustment" window that appears, change "High Output" setting to zero and click on OK (then confirm by pressing Continue). This step should convert your image to black.
  • Again with the SHADOW image, perform "Video->Modify Frame" with the "Apply Filter on Layer(s)" function, but this time choose the 'plug-in-gauss' filter. Click on the "Apply Constant" button and in the window that appears set the Blur Radius. Click on OK then Continue.
Your should now have a sequence of frames in your SHADOW image that are blurred, black copies of the original frames. We now need to copy these shadows back to the frames in the OBJECT image.
  • Back in the OBJECT image, open the "Video->Move Path" dialog. Make sure the Soure Image/Layer is set to your SHADOW image, set the Stepmode to "None", check the "Clip to image" box, and set the Layerstack value to "1". Also check the Instant Apply box (so you can see your shadow in the preview window) and then adjust the X and Y offsets of the Control Point. All of these options are circled in blue in the screenshot below.
  • After clicking OK,the drop shadow should be created on each of the frames in the OBJECT image.
  • Finally, perform "Video->Frames to Image" to convert the sequence of frames in the OBJECT image to multi-layer animation. A new image will be produced.
Attachment:
SSmove-path.png
SSmove-path.png [ 29.14 KiB | Viewed 4188 times ]


It is actually not as hard to accomplish as my description suggests, and it is a very good exercise to learn about how to use the GAP to perform GIMP operations on a sequence of animated frames.

Alternately, you could be lazy and use the following script (I don't even remember writing it):
http://chiselapp.com/user/saulgoode/rep ... 496624421e

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Sat Sep 28, 2013 7:27 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Saulgoode, thanks for your attention and to be patient to explain me all the details. I'll try it and, after, I'll give a feedback. I love all Gimpers.

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Sat Sep 28, 2013 7:49 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Thanks d4rkheart for your kindness.

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Sat Sep 28, 2013 8:39 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Saulgoode, your plugin "Shadow all layers" runs very well. It's wonderful. It will be possible to modify it to allow merge the shadow with the correspondent layer? Our task should be easier if we have a lot of layers. Forgive me. I make a request everyday, but I'm not able to write an script.

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Sat Sep 28, 2013 9:45 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 21, 2012
Posts: 103
Carlos, install this plugin .py merge pairs writed by Ofnuts viewtopic.php?f=8&t=7816#p109317 on this folder .gimp-2.8\plug-ins\ , you'll find this plugin on menu <Image>/Image/merge pairs .

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Mon Sep 30, 2013 7:46 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Saulgoode, I tried several times to make drop shadow in a image with multiple layers as you, kindly and patiently, explained me above. I had no success, but now I finally understood what happens. Though, with your permission, I’ll try to make a little modification of your tut to be easier for other people who is looking for the same solution.
1. First, I have an image with 10 layers in wich I want to apply dropshadows. The object in each layer is different from another. Though, each dropshadow is different from another. I call this image “OBJECT.xcf”. It would be gif also.
2. Create a new image called, par example, “Shadows0001.xcf” with a transparent layer and save it.
3. In the “Shadows0001.xcf”, perform VIDEO>Duplicate frames>number of frames = 9. Hit OK.
4. In the “Shadows0001.xcf”, perform VIDEO>Move Path>Source image layer = Object.xcf – Stepmode = Loop – Handle = left top – X and Y according to your source light. If the source light is at 135°, for example, X = 5, Y = 5. Hit OK.
5. In the “Shadows0001.xcf”, perform VIDEO>Frames modify>Fonction = Apply filters on layer(s). From Layer 1 to 10. Hit OK.
6. In the dialog that appears, choose the 'plug-in-wr-color-levels' and click on the "Apply Constant" button.
7. In the "Plug-in Colors Adjustment" window that appears, change "High Output" setting to zero and click on OK (then confirm by pressing Continue). This step should convert your image to black.
8. Again with the “Shadows0001.xcf” image, perform "Video->Frames Modify" with the "Apply Filter on Layer(s)" function, but this time choose the 'Plug-in-gauss' filter. From Frame 1 to Frame 10. Hit OK.
9. TIP: not the “Plug-in-blur”.
10. Click on the "Apply Constant" button and in the window that appears set the Blur Radius on your choice. Click on OK then Continue.
11. Again with the “Shadows0001.xcf” image, perform “Video>Move Path”. Source Image/Layer: Object.xcf. Stepmode = Loop. Handle = Left top. X = 0. Y = 0. The rest unchanged. Hit OK.
12. Finally, perform "Video->Frames to Image" to convert the the sequence of frames in the “Shadows0001.xcf” image to multi-layer animation. A new image will be produced with the desireds dropshadows.
Without your orientation it would be impossible to find the solution I was looking for.
Thanks. Thanks. Thanks.
Excuse me for my poor English. My mother language is Portuguese.

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Mon Sep 30, 2013 7:54 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Thanks d4rkheart, for the plugin "Merge-layer-pairs".

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Mon Sep 30, 2013 8:29 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
d4rkheart, the plugin "Merge-layer-pairs" resolved all my problems. First, I applied the filter "Lights and shadows>Shadow all layers" . Then, I applied "Image>Merge layer pairs". It expended less than 15 seconds.
How did you make your very nice "Thanks" animation?

_________________
Image


Top
 Post subject: Re: Plugin Filter all layers
PostPosted: Tue Oct 01, 2013 1:01 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 21, 2012
Posts: 103
Carlos Diniz wrote:
Thanks d4rkheart, for the plugin "Merge-layer-pairs".

Thanks to Ofnuts for this plug-in.

Carlos Diniz wrote:
d4rkheart, the plugin "Merge-layer-pairs" resolved all my problems. First, I applied the filter "Lights and shadows>Shadow all layers" . Then, I applied "Image>Merge layer pairs". It expended less than 15 seconds.
How did you make your very nice "Thanks" animation?

Download and view my videotutorial here https://www.box.net/shared/atxithnw7nnaxaild3m8 , on the file pdf are indicated all necessary plug-ins and scripts for this animation.
Can you use an other brush, a circle brush or other.
Hope it's clear, the final result of this videotutorial is
Image

Sorry for my bad english.

_________________
Image


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group