This commit is contained in:
Unknown
2018-03-18 20:50:58 -04:00
parent 17a7f8ccd1
commit 7725110e35
13 changed files with 411 additions and 112 deletions

8
scripts/getLayer.jsx Normal file
View File

@@ -0,0 +1,8 @@
#include lib.js
var stdout = newFile(arguments[0]);
var lyr = eval(arguments[1]);
stdout.writeln(('{"Name":"' + lyr.name + '", "Bounds": [[' + lyr.bounds[0] + ',' +
lyr.bounds[1] + '],[' + lyr.bounds[2] + ',' +
lyr.bounds[3] + ']], "Visible": ' + lyr.visible + '}').replace(/ px/g, ""));
stdout.close();