mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
v2 now in separate folder
This commit is contained in:
11
v2/runner/scripts/layerSetBounds.jsx
Normal file
11
v2/runner/scripts/layerSetBounds.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
#include lib.js
|
||||
var stdout = newFile(arguments[0]);
|
||||
var set = eval(arguments[1]);
|
||||
app.activeDocument.activeLayer=set;
|
||||
set.merge();
|
||||
set=eval(arguments[2]);
|
||||
stdout.write(('[[' + set.bounds[0] + ',' +
|
||||
set.bounds[1] + '],[' + set.bounds[2] + ',' +
|
||||
set.bounds[3] + ']]').replace(/ px/g, ""));
|
||||
Undo();
|
||||
stdout.close();
|
||||
Reference in New Issue
Block a user