Checking in. 594
set_raw_develop("filename") -- develop raw on next shot. If filename is nil (or omitted), any pending raw develop is canceled.
raw_merge_start(operation) -- operation is a number: 0=sum 1=average. Other=error.
raw_merge_add("filename") -- merge a file.
raw_merge_end() -- complete merge operation.
- Error checking is minimal. If you pass an invalid filename, things may silently fail. If you call raw_merge_add or raw_merge_end without calling start first, or call raw_merge_start multiple times without an intervening end, the results are undefined.
- The raw merge stuff runs in the same task as the script (the keyhook task), while raw operations from the menu run from the spytask. This appears to work, but it's a bit suspect.
I've attached the script I used to test this below. It performs the requested raw op on N files.
The user can specify what exposure number to start at, or use 0 to specify the most recent.
The script works counts down through the files until it find enough raws, so they don't need to be sequential.
It can optionally develop the resulting file.
The merged file will be named with the number of the last merged file, which will be the lowest number found.