Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Saturation Script needed (New)

$
0
0

You mean you want to change the foerground color?

I guess to do it properly you should include a check to see if the value is 100 yet and decide what to do then.

// 2013, use it at your own risk;

#target photoshop

if (app.documents.length > 0) {

var foreground = app.foregroundColor;

var theColor = new SolidColor;

theColor.hsb.hue = foreground.hsb.hue;

theColor.hsb.saturation = foreground.hsb.saturation + 3;

theColor.hsb.brightness = foreground.hsb.brightness;

app.foregroundColor = theColor;

};


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>