RSS/Atom feed Twitter
Site is read-only, email is disabled

Merge linked layers

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

8 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

Merge linked layers Jeremy Nell 18 Jan 08:31
  Merge linked layers Frank Gore 18 Jan 08:41
   Merge linked layers Szabolcs Hideg 18 Jan 12:47
    Merge linked layers Tőkés Ábel 18 Jan 13:43
     Merge linked layers Frank Gore 18 Jan 14:32
  Merge linked layers saulgoode@flashingtwelve.brickfilms.com 18 Jan 18:31
   Merge linked layers Jeremy Nell 18 Jan 19:30
    Merge linked layers saulgoode@flashingtwelve.brickfilms.com 18 Jan 23:47
Jeremy Nell
2011-01-18 08:31:45 UTC (about 14 years ago)

Merge linked layers

Is there a way to merge linked layers in Gimp?

Frank Gore
2011-01-18 08:41:42 UTC (about 14 years ago)

Merge linked layers

On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell wrote:

Is there a way to merge linked layers in Gimp?

I've never found a way. I just use the "Merge Visible Layers" action instead. Click on the visibility icon next to each layer to make only the linked ones visible, then use "Merge Visible Layers". Same result, but a few extra clicks.

--
Frank Gore
www.ProjectPontiac.com

Szabolcs Hideg
2011-01-18 12:47:06 UTC (about 14 years ago)

Merge linked layers

One could write a script to do this, if it's possible to determine a layer's linked state, and programmatically toggle visibility off. I think it could be done with gimp-drawable-get-linked, and gimp-drawable-set-visible in a for loop of $number_of_layers I only did some basic scripting in script-fu, and that too, was a while ago, so I don't know if this could work.

2011/1/18 Frank Gore

On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell wrote:

Is there a way to merge linked layers in Gimp?

I've never found a way. I just use the "Merge Visible Layers" action instead. Click on the visibility icon next to each layer to make only the linked ones visible, then use "Merge Visible Layers". Same result, but a few extra clicks.

--
Frank Gore
www.ProjectPontiac.com
_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Tőkés Ábel
2011-01-18 13:43:46 UTC (about 14 years ago)

Merge linked layers

I imagine there can be a non-trivial problem with the concept if the linked layers are not all neighbors: if there is at least one layer that is not one of the linked, but between those. In this case, where would the merged layer be: above or below the middle one?

Abel

On 1/18/2011 1:47 PM, Szabolcs Hideg wrote:

One could write a script to do this, if it's possible to determine a layer's linked state, and programmatically toggle visibility off. I think it could be done with gimp-drawable-get-linked, and gimp-drawable-set-visible in a for loop of $number_of_layers I only did some basic scripting in script-fu, and that too, was a while ago, so I don't know if this could work.

2011/1/18 Frank Gore >

On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell > wrote: > Is there a way to merge linked layers in Gimp?

I've never found a way. I just use the "Merge Visible Layers" action instead. Click on the visibility icon next to each layer to make only the linked ones visible, then use "Merge Visible Layers". Same result, but a few extra clicks.

-- Frank Gore
www.ProjectPontiac.com
_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Frank Gore
2011-01-18 14:32:14 UTC (about 14 years ago)

Merge linked layers

On Tue, Jan 18, 2011 at 8:43 AM, Tőkés Ábel wrote:

I imagine there can be a non-trivial problem with the concept if the linked layers are not all neighbors:
if there is at least one layer that is not one of the linked, but between those. In this case, where would the merged layer be: above or below the middle one?

Honestly, it should just be part of the default feature set in Gimp. I'm a bit shocked that it still isn't.

-- Frank Gore
www.ProjectPontiac.com

saulgoode@flashingtwelve.brickfilms.com
2011-01-18 18:31:24 UTC (about 14 years ago)

Merge linked layers

Quoting Jeremy Nell :

Is there a way to merge linked layers in Gimp?

Install the script from the following webpage:

http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-merge-linked

Jeremy Nell
2011-01-18 19:30:53 UTC (about 14 years ago)

Merge linked layers

This is brilliant (and should be a standard feature in Gimp). Just added this script to Gimp and it works like a charm ... thus far. There is, however, an interesting dynamic to this script.

If layer 1 is visible, but layer 2 is not visible, and both are linked, then merging them results in the non-visible layer becoming visible (but only after another layer has been clicked on).

I'm not sure whether or not this is a good or bad thing; I'm undecided...

On Tue, 2011-01-18 at 13:31 -0500, saulgoode@flashingtwelve.brickfilms.com wrote:

Quoting Jeremy Nell :

Is there a way to merge linked layers in Gimp?

Install the script from the following webpage:

http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-merge-linked

_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

saulgoode@flashingtwelve.brickfilms.com
2011-01-18 23:47:20 UTC (about 14 years ago)

Merge linked layers

Quoting Jeremy Nell :

This is brilliant (and should be a standard feature in Gimp).

I disagree (with the "standard feature" part, and any brilliance lies mainly with GIMP's extensibility through scripting). The approach is something of an abuse of chain linking, and of visibility; and for the most part its usefulness will be obviated by the introduction of layer groups in 2.8.

... There is, however, an interesting dynamic to this script.

If layer 1 is visible, but layer 2 is not visible, and both are linked, then merging them results in the non-visible layer becoming visible ...

Technically, neither of the original layers exist after the merge, a new layer is created; but from a "least surprise" standpoint, I understand your meaning (and what if all of the linked layers are hidden, should the merge result not also be hidden?).

I'm not sure whether or not this is a good or bad thing; I'm undecided...

For what it's worth, the first version of the script would merge only the visible linked layers, and it was only after I added the "Merge linked" command to the menus that I reconsidered based upon the behavior not matching the name of the command (and not being able to think of a more suitable name).

To me, this script is pretty much a throwaway "convenience" function and its behavior should be customized to best suit a particular task. If you decide you want it to behave differently, we can customize it to do what you want. If I were writing the script for myself, I'd probably limit the merging to only visible linked layers but that might not fit your expectations.

(but only after another layer has been clicked on).

A mistake on my part. I forgot to update the display. This has been fixed (updated version available from the same webpage, http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-merge-linked).