Photoshop translate with anchor point
Photoshop translate with anchor point
- Subject: Photoshop translate with anchor point
- From: Michael Tompsett <email@hidden>
- Date: Thu, 29 Aug 2002 13:56:39 +0100
I have written a script which takes image details from a quark page (size,
scale and positioning) and then opens the image in Photoshop to position and
crop the image to how it appears on the quark page. Everything is fine apart
from one bit. To scale the image to the correct size is fine because you can
use an anchor point. However to move the image, it does not allow you to use
an anchor point. The measurements are taken from quark, which uses the top
left as the anchor point? Is there any way around this.
Below works but the picture is 3translated2 to the wrong point as it uses
the center as its anchor point.
tell application "Adobe Photoshop 7.0"
activate
tell document 1
tell layer 1
scale horizontal scale 50 vertical scale 50 anchor position top
left
translate layer 1 of document 1 delta x millimeters -20 delta y
millimeters -30
end tell
end tell
end tell
Thanks for any help with this
Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.