Created
June 29, 2015 15:05
-
-
Save anton-liubushkin/357075d9957e1f6f0ed2 to your computer and use it in GitHub Desktop.
Makes a rectangular selection — Photoshop script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// x, y, width, height | |
// x & y position from top left corner of document | |
// width & height of selection | |
// | |
// makeSelection(10,50,200,100); | |
function makeSelection(x,y,sw,sh){ | |
app.activeDocument.selection.select([ [x,y], [x,y+sh], [x+sw,y+sh], [x+sw,y] ]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
extended version with units as parameter, because in my ps installation first script worked only with pixels (I needed in cm)
http://wereda.net