Help appreciated, complex scripts required

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

djonyx

Help appreciated, complex scripts required

Post by djonyx »

Hi forum,

we have the following scenario (using enfocus switch) and need two scripts for this:

1. a PSD-File containing a masked layerset with hardcoded name (e.g. "Set 1") will be opened. The layerset "Set 1"contains a random number of adjustment-layers. The script has to save only the layerset "Set 1" with its content but without the mask on the layerset to a hardcoded path (e.g. ~/Documents/temp/correction.psd) as PSD file.

2. in a second automation-workflow jpg-Files are opened and the layerset "Set 1" from "~/Documents/temp/correction.psd" should be placed on top of the background layer. after that the existing path "Path 1" (exists in all JPG files) has to be set as mask on layerset "Set 1" and the document can then be flattened. next, select path "Path 1", invert selection and fill with white, save file as JPG, maximum quality.

any help with this is greatly appreciated, thanks very much in advance!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

Help appreciated, complex scripts required

Post by pfaffenbichler »

Why use the Path as a Mask when then inverted Path will be filled with white anyway?

But why fill with white to begin with?
If the images are intended to be used clipped later on this will unnecessarily damage the edge pixels.
djonyx

Help appreciated, complex scripts required

Post by djonyx »

thanks, you are right with that one:
update:
2. in a second automation-workflow jpg-Files are opened and the layerset "Set 1" from "~/Documents/temp/correction.psd" should be placed on top of the background layer. after that the document can then be flattened. next, select path "Path 1", invert selection and fill with white, save file as JPG, maximum quality.

the objects must be surrounded by white for use in some sort of webshop-system, i believe.