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;
Any idea why this doesn't work?
Ah! Figured it out myself: I was trying to put the group inside itself because of the way this is written.
Retrieving data ...