Skip to main content
Known Participant
June 25, 2023
Question

How to get Brightness/Contrast levels of a layer, using .jsx Adobe Photoshop scripting?

  • June 25, 2023
  • 1 reply
  • 1118 views

I have a .jsx Photoshop script workflow that begins by first applying a Brightness/Contrast adjustment to the current image, then uses the "Auto" setting.

 

For the next step, I'd like to get the properties of that Brightness/Contrast layer, and then IF the brightness meets a certain criteria? Change the brightness to some other value. Same for the contrast.

 

What's the best way to automate this in my .jsx file?

 

Thanks!

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
June 25, 2023

You should be able to get the Layer’s settings via AM-code. 

Stephen Marsh
Community Expert
Community Expert
June 25, 2023

@c.pfaffenbichler - Easier said than done, at least for me!