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

How can I create a curves adjustment layer in JavaScript?

$
0
0

I've been trying a few different approaches along the lines of:

 

var newLayer = activeDocument.artLayers.add(); // Create a new ArtLayer object

newLayer.name = "MyLayer"; // name it for later reference

app.activeDocument.artLayers.getByName("MyLayer").kind=LayerKind.CURVES

 

When I do, I get an error that I can only change the layer's kind to text or normal.  Anyone know how to create a new curves adjustment layer via script?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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