request for script > layer comps to files -
option for tif files to be flattened, RGB formats will flatten the images but no workaround for CMYK within the script.
tiffSaveOptions.layers = false;
after line 709, if You want the tiffs flattened all the time.
If You want the option in the dialog well, thats a bit too steep for my skills.
But the Scripting Forum has a couple of regulars who might be able to help You there.
You might get more competent help
it got the job done so it was more than competent!
in case anyone else is following along the other minor change that I made was to the naming. It makes sense to keep the layer comp name and not necessary to add the default sequence prefix for my purposes, so replacing lines 190,191 with the following fixes that problem.
//fileNameBody += "_" + zeroSuppress(compsIndex, 4);
fileNameBody = compRef.name;
(there's probably a more correct way but this did the trick)
in it's original form the script is fine for rgb output, animation etc., the end result from this change and Christoph's solution is that the script becomes a viable component within a CMYK workflow.
It would be nice if the script "layer comps to files" had an option to save a flattened tif, instead of a layered one.
10. layer comps