GIMP Script-fu

Update of "sg-channel-blend"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: bf48d55295746db748bbc213e1f4796157d433cd
Page Name:sg-channel-blend
Date: 2014-06-16 15:20:37
Original User: saulgoode
Parent: 5311221973c51cc2ced11bcbacaf72966509ab99
Content
Command:
Channel Blend
Menu:
"<Channels>/Blend Down..."
"<Channels>/Show only"
"<Layers>/Show only"
PDB Name:
script-fu-sg-channel-blend
Download:
sg-channel-blend.scm (after the page appears, click on the "Download" command)
License:
GPLv2+

Description:

This script permits blending of two channels using any of the typical layer modes (except for the color ones, which are not relevant for grayscale channels).

The main utility of the script is for subtracting the current selection from a channel to produce a new channel; the normal interface only supports subtracting a channel from the selection. In order to subtract the current selection from a channel, enter Quickmask mode and run the script (note that for this particular case, the resulting blended channel will become the new Quickmask).

The other blending modes offered by script may be useful in other situations, though there is admittedly a good deal of redundancy in the offerings (for consistency's sake, I retained the same dropdown menu as offered in the Layers Dialog).

Unlike a layer Merge Down, the channel Blend Down command offers the option of blending hidden channels (since it is often the case that channels are not visible, this is the default behavior). You can also adjust the opacity of the blended channel.

The script also adds a "Show only" command to each of the Channels menu and the Layers menu (not the Layer menu). This simple utility command will hide all other drawables except the active one, permitting you to see, for example, a channel by itself.

Technical note: There seems to be an anomaly (bug?) in GIMP behavior such that "Re-Show" (CTRL-SHIFT-f) generates an error for the Blend Down filter when attempting to re-apply it to the Quickmask. Apparently activating Quickmask is failing to generate a message signifying the update of the active drawable.