How to select the mask of a layer through scripting and save it as a new layer
Hello, I am using Photoshop's extendscript to try and get the mask of a layer and then save the mask as a new layer (the black/white portions).
I used `activeDocument.layers` to get my layers collection just fine, then I used `activeDocument.channels` to get the mask channel, but it only shows the default 3 RGB channels only and not the mask channels.
If I duplicate the default mask, it appears in `activeDocument.channels` but it won't show there otherwise.
How can I programmatically get ahold of the mask of a layer? Any help would be appreciated.
