Answered
Transform Selection Script
Hi,
Im looking for a way to make a script that tranform the actual selection but like the way i can do in Photoshop menubar.
like Transform 100%+2px?
that would help me so much if anyone had an idea.
best Regards
Hi,
Im looking for a way to make a script that tranform the actual selection but like the way i can do in Photoshop menubar.
like Transform 100%+2px?
that would help me so much if anyone had an idea.
best Regards
preferences.rulerUnits = Units.PIXELS
b = (slctn = (aD = activeDocument).selection).bounds
p = 2 / ((b[2] - b[0] + (b[3] - b[1])) / 200)
slctn.resizeBoundary(100 + p, 100 + p)
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.