What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

adjust levels layer


ron_osborn

New Member
Messages
3
Likes
0
I've spent the better part of a day and have not been successful. I'm trying to figure out how to use vb to add an adjustment layer in CS2 and set its 5 parameters (input black level, gamma, input white level, output black level, and output white level) .
In the scripting documentation it says to add an art layer and then set its .kind property while it is empty. I can add an artlayer and set its kind to 1 or 2 (normal or text) but not 6 (adjustment layer). I have also created an action to add an adjustment layer and call it from vb, but I can't set its parameters to anything different (it uses what was set in the action which I don't want to use.) I have also tried to use the adjustlevels method of an artlayer to change the parameters but I think that only works on a normal layer by changing the layer data. Using it on an adjustment layer causes an error. I also had little luck in checking the script listener to expose what might be going on (parameter-wise) when I add a new adjustment layer. What am I missing. My images are 16 bit/channel with only a background layer.
Thanks.
 

Back
Top