Reputation: 4187
Is there a script/plugin/action available that will automatically align several images into a grid style layout e.g. wookmark ?
I am desperately in need of something to automate this, as a weekly project I have to arrange about 40 thumbnails into a PSD.
Upvotes: 0
Views: 2278
Reputation: 4240
Using JavaScript...
You can define a selection using an array of coordinate points like so:
var x = 0;
var y = 0;
var w = thumbnailDoc.width; // width of thumbnail document
var h = thumbnailDoc.height; // height of thumbnail document
var sel = [ // Define a rectangle of coordinate points
[x, y], // moving clockwise from top-left corner of rectangle
[x + w, y],
[x + w, y + h],
[x, y + h],
[x, y] //back to start
];
var doc = app.documents.add(200, 200, 72) // create new document (width, height, resolution)
doc.selection.select(sel); // make a selection using the array of coordinates
doc.paste(true) // paste the contents of the clipboard
// pass in the boolean 'true' to make it paste into the selection
So all you have to do is loop through all the pictures, resize them to thumbnails if you haven't already, copy to the clipboard, then paste into the selection on the working document. Increment your x,y coordinates as you go and you're strolling.
Upvotes: 1