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

Add layer to group

$
0
0

Hi, I'm trying to add a layer to a group (this is a simple part of a much larger script), but can't seem to get it to work. Here is the script:

myDoc = app.activeDocument;
var newLayerSet = myDoc.layerSets.add();  
var myLayer = myDoc.layers[0];
myLayer.move(newLayerSet, ElementPlacement.INSIDE); 

 

Any idea why this doesn't work?

 

S


Viewing all articles
Browse latest Browse all 12244

Trending Articles