Script to add layer mask to all layers but background?
I've been a professional editor/retoucher for photographers for the past three years. I use a lot of actions, but I've never branched into scripts until now. I'm trying to refine my workflow and scripts seem like the next logical step.
I do a lot of interiors work, which is basically manual HDR. Here's my current build process, which I'd love to find a way to script. I tried to be very clear, but let me know if this needs fleshing out. I'm using Photoshop CS5.
1. Pull up bracketed, color-corrected TIFFs in Bridge.
2. Re-order as needed, with main exposure at the bottom. Click "Tools" > "Photoshop" > "Load as Photoshop layers" to get a PSD with layers in correct order and main exposure as background (base) layer.
3. Manually go through each layer and add a Hide All layer mask to every layer except the background layer.
4. Save as a PSD, using the original name of the background layer as the filename. To do this I just copy the layer name (example.tiff), paste in the Save dialog and then use the dropdown menu to select PSD (thus saving as example.psd).
I'm hoping to automate steps 3 and 4 as they are the most time consuming for me. Any input is appreciated!!
Thanks again.
