-
Change color of layer styles???
Hi there,
I have a little problem here…
Dan Ebberts answered a question about adding a layer style – like Bevel and Emboss -. it is really great script.
But when I wanna change the Highlight Color it doesn`t work.
Can anyone help me to fix it?– the problem is in the last line…
{
var myCompName = "Comp 1";var myComp = null;
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i).name == myCompName && app.project.item(i) instanceof CompItem){
myComp = app.project.item(i);
}
}
if (myComp){
myComp.openInViewer();
myComp.layer(1).selected = true;
app.executeCommand(app.findMenuCommandId("Bevel and Emboss"));
}
var layer = app.project.activeItem.layer(1);
layer.property("Layer Styles").property("Bevel and Emboss")("Depth").setValue(1000);
layer.property("Layer Styles").property("Bevel and Emboss")("Size").setValue(4);
layer.property("Layer Styles").property("Bevel and Emboss")("Highlight Mode").setValue(16);
layer.property("Layer Styles").property("Bevel and Emboss")("Highlight Color").setValue[(128,0,128)];}