Batch process RAW exposures, please help!
Hello, I'm new to photoshop scripting for windows, and I was wondering if anyone knew how to batch process a folder of raw files, change the the raw's exposure, and save as jpg to another folder, based on a condition within the file's name, then close the opended jpg document.
My goal is to have a script that extracts the correct exposures from sets of three bracketed raw files, which I usually have seperated by 2 EV's. So for example, say I have a folder Called Batch Processing on the C drive, and I have two folders,
C:\Batch Processing\JPG
C:\Batch Processing\RAW
and in the RAW folder I have some files called,
Image_01_E01.cr2
Image_01_E02.cr2
Image_01_E03.cr2
If the file has "_E01" at the end, I want to open that raw file, change the exposure to -4, save the file with the same name, except the last 4 characters, and add some number to the end, so for example, it would end up being "Image_01" + "_E01". This would end up being saved to the JPG folder. Then open up the same file, change the exposure to -2 and save as "Image_01" + "_E02".
To make this post short, here is the conversion table I'm trying to achieve -
Image_01_E01.cr2 -> Image_01_E01.jpg Exposure = -4
Image_01_E01.cr2 -> Image_01_E02.jpg Exposure = -2
Image_01_E02.cr2 -> Image_01_E03.jpg Exposure = -2
Image_01_E02.cr2 -> Image_01_E04.jpg Exposure = 0
Image_01_E02.cr2 -> Image_01_E05.jpg Exposure = 2
Image_01_E03.cr2 -> Image_01_E06.jpg Exposure = 2
Image_01_E03.cr2 -> Image_01_E07.jpg Exposure = 4
After that, close all open files. Then, if there is another set of raws, repeat for them as well. For example -
Image_02_E01.cr2 -> Image_02_E01.jpg Exposure = -4
Image_02_E01.cr2 -> Image_02_E02.jpg Exposure = -2
Image_02_E02.cr2 -> Image_02_E03.jpg Exposure = -2
Image_02_E02.cr2 -> Image_02_E04.jpg Exposure = 0
Image_02_E02.cr2 -> Image_02_E05.jpg Exposure = 2
Image_02_E03.cr2 -> Image_02_E06.jpg Exposure = 2
Image_02_E03.cr2 -> Image_02_E07.jpg Exposure = 4
So basically this script would take 3 raws seperated by 2 EV's and extract 7 exposures, seperated by 2 EV's. I've done this manually, and merged them to hdr, and the results are actually pretty decent.
I tried doing this with actions and batch processing, but I had to have everything seperated in individual folders like E01, E02, etc. and I had to make an action for each step in the process.
I know this is probably a lot to ask, but I think it can be done, and I would of course credit the person in the script for helping.
Thanks in advance!
