Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Creating adjustment layers without Script Listener code

$
0
0

I'm assuming it's possible to create an adjustment layer without Script Listener code, but I can't figure out how. I can create a normal layer and change it to a text layer and that seems to be about it. I was specifically trying to create a Photo Filter layer. I can do it with Script Listener code, but now I'm just curious.

 

Example:

 

adjLayer=app.activeDocument.artLayers.add().kind=LayerKind.TEXT; <--This works.

 

adjLayer=app.activeDocument.artLayers.add().kind=LayerKind.PHOTOFILTER ;  <--Does not work.

 

It allows changing to/from either a normal or text layer only. There is also a photoFilter() method which allows adjusting the values of a Photo Filter layer but only if one already exists.

 

So it appears that the add() method in the artLayers collection is only good for adding a normal or text layer. Is there any way to add an adjustment layer (other than using Script Listener code)?

 

Am I missing something simple?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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