Edit layer mask to image data レイヤーマスクを画像データにして編集する
A set of actions to take layer mask as an image, edit something, and then apply a set of actions to be applied as a mask
Contains several other actions related to masks
■ Description of each action
(1) Remove the mask
Copy current layer layer mask as an image new layer
The entity of this layer is gray raster layer
It represents opacity in white and black, or in its intermediate color.
It is easy to see if the opacity is able to form a smooth gradient.
You can actually apply the results of editing this layer to layer mask
This action is used in sets with (2)
(2) Return to layer mask
For layers that were taken out of (1) or created in (4)
This action is used in sets with (1) or (4), and this action completes the set operation.

Copy current layer layer mask to one layer below layer mask
No previous layer mask left

(4) Layer for new masks
Create a layer for a new layer mask rather than taking it out of the layer mask
This action is used in sets with (2)
(5) Clear layer mask (all areas)
Clears the entire contents of the current layer layer mask
Even if there is a selection, the entire area will be erased.
Bonus (described later)
(6) new fill in monochrome layer
About ■ selection
The selection is designed to not function for the purpose of adding a range limit to the content of the operation.
About ■ quick mask
If there is a selection use quick mask save it so that you can keep it
Do not perform these actions while editing the quick mask
About ■ selection errors
If the mask is black (0 total opacity), you may receive an error stating that the create selection cannot be used.
To flip a ■ display in black and white
By enabling all [reverse gradient] actions that are disabled by default within an action, editing data can be reversed and edited in black and white.
(1), (2), (4) It is necessary to switch to a uniform valid/disabled
If you only want to flip the black and white, you can TURN the layer color on or OFF.
■ ※ Attention!
Folder Mask not supported
Please keep in mind that if you do, you will run the process of duplicate layer all the folders below.
What to do if you want to edit the ■ folder mask
Create a new raster layer and then drag and drop the folder mask on the Layer Palette to move it to the new layer and then perform the action
After editing, perform the action as usual and return to the layer mask and then move the mask to the original folder mask
delete layer you've created and you're done
■ Bonus
(6) new fill in monochrome layer
create new fill Layer
If there is a selection, make it a mask (same as the default behavior)
If there is no selection, create a mask to hide the area.
* This action ends with the selection cleared.
レイヤーマスクを画像として取り出し、何か編集した後、マスクとして適用する一連の操作をするためのアクションのセットです
その他マスクに関連するいくつかのアクションが含まれています
■各アクションの説明
(1)マスクを取り出す
現在のレイヤーのレイヤーマスクを新規レイヤーに画像としてコピーします
このレイヤーの実体はグレースケールのラスターレイヤーです
白と黒、あるいはその中間色で不透明度を表しています
不透明度が滑らかなグラデーションを形成できているか等を確認しやすいのが利点です
このレイヤーを編集した結果を実際にレイヤーマスクに適用できます
このアクションは(2)とセットで使用します
(2)レイヤーマスクに戻す
(1)で取り出した、または(4)で作成したレイヤー向けです
このアクションは(1)または(4)とセットで使用し、このアクションでセット操作が完了します

現在のレイヤーのレイヤーマスクを、1つ下のレイヤーのレイヤーマスクにコピーします
以前のレイヤーマスクは残りません

(4)新規マスク用レイヤー
レイヤーマスクから取り出すのではなく、新しくレイヤーマスク用にレイヤーを用意します
このアクションは(2)とセットで使用します
(5)レイヤーマスクをクリア(全域)
現在のレイヤーのレイヤーマスクの内容を全域消去します
選択範囲があったとしても全域が消去されます
おまけ(後述します)
(6)新規べた塗りレイヤー
■選択範囲について
選択範囲は動作の内容に範囲制限を加える目的では作用しないよう設計されています
■クイックマスクについて
選択範囲がある場合維持できるようクイックマスクを使用して保存しています
クイックマスクの編集中にはこれらのアクションを実行しないで下さい
■選択範囲のエラーについて
マスクが真っ黒(全域不透明度0%)の場合、選択範囲を作成できない旨のエラーが表示される場合があります
■表示を白黒反転するには
アクション内でデフォルトで無効になっている[階調の反転]アクションを全て有効にすることで編集用データを白黒反転させて編集できるようになります
(1)、(2)、(4)について有効/無効を一様に切り替える必要があります
見た目だけ白黒反転できればよい場合はレイヤーカラーをON/OFFすることで反転できます
■※ご注意!!
フォルダーのマスクには対応していません
もし実行してしまうと、フォルダー以下全てのレイヤーを複製するという処理を走らせてしまうものもあるのでご注意ください
■フォルダーのマスクを編集したい場合の対処法
新規でラスターレイヤーなどを作成し、[レイヤーパレット]上でフォルダーのマスクをドラッグ&ドロップすることで新規レイヤーに移動させてからアクションを実行します
編集後は、通常通りアクションを実行してレイヤーマスクに戻した後、そのマスクを元のフォルダーのマスクに移動してください
作成したレイヤーを削除して完了です
■おまけ
(6)新規べた塗りレイヤー
[べた塗りレイヤー]を新規作成します
選択範囲がある場合はそれをマスクにします(デフォルトの動作と同じ)
選択範囲がない場合は全域非表示となるマスクを作成します
※このアクションは選択範囲を解除した状態で終了します