Hi I just started to make use of scripting for Photoshop.. and I have few.. issues I can't get through..
1. How can I create an adjustment layer (like curves.. etc)?
the following code doesn't do the job:
var artLayerRef = app.activeDocument.artLayers.add();
artLayerRef.kind = LayerKind.CURVES;
it says that I can only change to normal or text layer.. how then I can right away create CURVES layer?? Is that possible?
2. Can I make use of "Save for Web" option from File menu (it is possible with Actions)? I noticed only the option to use standard save as jpg... which is not so good in some cases..
3. .. can I use scripts to run photoshop actions.. (in case of some disabilities of scripting which actions can go through.. hope there's none.. ?
Sorry if my issues are simply silly but I'm completely newbie to PS scripting.. and quite fresh to scripting at all.. I've just spend few hours trying to create simple solid color layer using script.. with no success Thanks for help..
1. How can I create an adjustment layer (like curves.. etc)?
the following code doesn't do the job:
var artLayerRef = app.activeDocument.artLayers.add();
artLayerRef.kind = LayerKind.CURVES;
it says that I can only change to normal or text layer.. how then I can right away create CURVES layer?? Is that possible?
2. Can I make use of "Save for Web" option from File menu (it is possible with Actions)? I noticed only the option to use standard save as jpg... which is not so good in some cases..
3. .. can I use scripts to run photoshop actions.. (in case of some disabilities of scripting which actions can go through.. hope there's none.. ?
Sorry if my issues are simply silly but I'm completely newbie to PS scripting.. and quite fresh to scripting at all.. I've just spend few hours trying to create simple solid color layer using script.. with no success Thanks for help..