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

apply adjustment layer to layer and set a specific preset

$
0
0

Hello again,

 

currently iam trying to give an layer

the adjustment "black and white" and i want

to set the settings the the "Red Filter" Preset.

 

var sLayer = activeDocument.layerSets.getByName("height").artLayers.getByName("SceneHeightRamp"); // Gets the Layer i want
sLayer.kind.BLACKANDWHITE;  // applys BlackandWhite adjustment

 

 

Script Listender does say nothing.

Maybe the solution is, to wirte the stats in an array and apply it to the layer ?

 

sLayer.kind.BLACKANDWHITE[120,110,-10,-50,0,120]; 

 

Here the stats:

 

Reds: 120%

Yellows: 110%

Greens: -10%

Cyans: - 50%

Blues: 0%

Magentas: 120%

 

Thanks alot!

Greets

 

//Also if an admin wants to change my Name to "Kaelron" it would be nice.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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