mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Added a TextItem Struct to Artlayers.
* Converted scripts to use the same getLayers() function from lib.js
This commit is contained in:
@@ -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();
|
||||
*/
|
||||
Reference in New Issue
Block a user