Added a TextItem Struct to Artlayers.

* Converted scripts to use the same getLayers() function from lib.js
This commit is contained in:
Unknown
2018-04-26 13:09:36 -04:00
parent e136ea8a83
commit 40cde546bc
8 changed files with 179 additions and 85 deletions

View File

@@ -2,6 +2,9 @@
app.displayDialogs=DialogModes.NO
var stdout = newFile(arguments[0]);
var lyr = eval(arguments[1]);
var lyrs = [lyr];
stdout.writeln(layers(lyrs))
/*
stdout.write(('{"Name":"' + lyr.name + '","Bounds":[[' + lyr.bounds[0] + ',' +
lyr.bounds[1] + '],[' + lyr.bounds[2] + ',' +
lyr.bounds[3] + ']],"Visible":' + lyr.visible+',"Text":').replace(/ px/g, ""));
@@ -11,4 +14,5 @@ if (lyr.kind == LayerKind.TEXT) {
else
stdout.write(null)
stdout.writeln('}')
stdout.close();
stdout.close();
*/