Can now retrieve ArtLayers/LayerSets from Document/LayerSets by name.

- Added helper methods to ArtLayer to get each boundry.
- Fixed a bug in getActiveDoc.jsx
This commit is contained in:
Unknown
2018-03-20 13:32:43 -04:00
parent 0202d5c188
commit 8f0e80863c
4 changed files with 184 additions and 81 deletions

View File

@@ -1,8 +1,8 @@
#include lib.js
var stdout = newFile(arguments[0]);
var doc = app.activeDocument;
stdout.writeln(('{"Name": "' + doc.name +'", "Height":' +doc.height +
', "Width":' + doc.width + ', "ArtLayers": [').replace(/ px/g, ""));
stdout.writeln(('{"Name": "'+doc.name+'", "Height":'+doc.height+
', "Width":'+doc.width+', "ArtLayers": [').replace(/ px/g, ""));
function layers(lyrs) {
if (typeof lyrs === 'undefined')
return;