D 2014-12-06T17:57:43.309 L sg-copy-mask-from-above P f85c25086d7ae8b92b82fc828574da1598d58c4d U saulgoode W 2499
Command:
Copy Mask From Above
Menu:
"/Layer/Mask/Copy Mask From Above"
"/Copy Mask From Above"
PDB Name:
script-fu-sg-copy-mask-from-above
Download:
[http://chiselapp.com/user/saulgoode/repository/script-fu/artifact/2200b3f934fa1806ded9cf9b9e3270325be13e3f|sg-copy-mask-from-above.scm] (after the page appears, click on the "Download" command)
License:
[copyright|GPLv2+]
Description:
This script copies the layermask from the visible layer directly above the active layer in the layer stack. The command is available in both the "Layer->Mask" submenu and in the Layers context menu (that appears when you right-click on a layer). The result follows the following rules: Here are some screenshots of the Layers dialog for a few different scenarios. The dialog on right is the result after running the script. Layer directly above active layer is visible and has a layermask. That mask is added to the active layer.
Same as before but here the active layer already has a layermask (this layermask gets replaced by the new one).
Layer directly above active layer is visible but does not have a layermask. A grayscale copy of that layer is added to the active layer.
The layer directly above the active layer is hidden and therefore ignored. The mask is created based upon the first visible layer above the active layer.
Z 78437d869090445a3cf2d65aaa89da1e