If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.
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.