Gimp-Forum.net
Write me a script-fu script that can merge 2 layers into one - 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)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: Write me a script-fu script that can merge 2 layers into one (/Thread-Write-me-a-script-fu-script-that-can-merge-2-layers-into-one)



Write me a script-fu script that can merge 2 layers into one - Klins83 - 06-21-2022

Hi,
Please I need help.
Anyone please write a script-fu script for me that can merge 2 layers into one layer


RE: Write me a script-fu script that can merge 2 layers into one - Kevin - 06-21-2022

There must be more to it than just merging two layers - as that's just a couple of clicks in the layers dialog.

Can you explain your requirements in more detail please.


RE: Write me a script-fu script that can merge 2 layers into one - Klins83 - 06-21-2022

(06-21-2022, 10:34 AM)Kevin Wrote: There must be more to it than just merging two layers - as that's just a couple of clicks in the layers dialog.

Can you explain your requirements in more detail please.

Thanks for your prompt reply

I am trying to create a PSD file from
a set of images using gimp coding i.e.
using script-fu. Currently, I can create
a PSD file from a set of images with
each image as a separate layer. Now
I am stuck in linking 2 layers into a
single layer.


RE: Write me a script-fu script that can merge 2 layers into one - Kevin - 06-21-2022

Do you know about the Procedure Browser?
[attachment=8153]

So I think gimp-image-merge-down is what you need.


RE: Write me a script-fu script that can merge 2 layers into one - Klins83 - 06-21-2022

(06-21-2022, 01:15 PM)Kevin Wrote: Do you know about the Procedure Browser?


So I think gimp-image-merge-down is what you need.

Ok...let me try I out...i will tell you how it goes
Thank you soo much


RE: Write me a script-fu script that can merge 2 layers into one - Klins83 - 06-22-2022

(06-21-2022, 01:15 PM)Kevin Wrote: Do you know about the Procedure Browser?


So I think gimp-image-merge-down is what you need.

Good day Kevin I am new to script-fu in gimp.
I want to merge 2 layers with the "gimp-image-merge-down " function. Just like you showed me. But I don't know how to write down the function. Can you help me write the (.scm) function for me
I have attached the 2 image file for you