[Gimp-user] Merge linked layers
Is there a way to merge linked layers in Gimp? ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Merge linked layers
On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell jeremyn...@gmail.com 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
Re: [Gimp-user] 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 g...@projectpontiac.com On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell jeremyn...@gmail.com 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
Re: [Gimp-user] 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 g...@projectpontiac.com mailto:g...@projectpontiac.com On Tue, Jan 18, 2011 at 3:31 AM, Jeremy Nell jeremyn...@gmail.com mailto:jeremyn...@gmail.com 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 http://www.ProjectPontiac.com ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU mailto: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 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Merge linked layers
On Tue, Jan 18, 2011 at 8:43 AM, Tőkés Ábel preobazsensz...@freemail.hu 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 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Merge linked layers
Quoting Jeremy Nell jeremyn...@gmail.com: 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
Re: [Gimp-user] 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, saulgo...@flashingtwelve.brickfilms.com wrote: Quoting Jeremy Nell jeremyn...@gmail.com: 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 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Merge linked layers
Quoting Jeremy Nell jeremyn...@gmail.com: 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). ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user