Press D to reset the Foreground color to black and the Background color to white.
for root, dir, files in os.walk (psdRoot): for thisFile in files: if (thisFile.lower ().endswith ('.psd')): fullFilename = os.path.join (root, thisFile) psdFiles.append (fullFilename) for psdFile in psdFiles: doc = psApp.Open(psdFile) layerSets = doc.LayerSets.