2
votes
Accepted
Is it possible to write a script in Photoshop that reads the values of a pixel on two layers, then sets a new value in the layer mask of a third?
Not asked, but after replacing your complex variable names with B (=pixel from Layer1) and A (=pixel from layer2) your K will have equation K=Round(100(1-(B-A)/B).
It reduces in elementary math to K=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
photoshop-scripting × 325adobe-photoshop × 272
javascript × 41
actions × 32
automation × 30
layers × 25
script × 24
batch-processing × 21
export × 14
adobe-illustrator × 13
photoshop-effects × 11
resize × 11
illustrator-scripting × 11
cc-2019 × 11
photo-editing × 10
cs6 × 8
text × 7
selections × 7
color × 6
smartobject × 6
images × 5
png × 5
plugin × 5
gimp × 4
pdf × 4