Re: Text Layers in Photoshop CS5
Re: Text Layers in Photoshop CS5
- Subject: Re: Text Layers in Photoshop CS5
- From: "Fleisher, Ken" <email@hidden>
- Date: Thu, 24 Mar 2011 11:29:58 -0400
- Thread-topic: Text Layers in Photoshop CS5
Title: Re: Text Layers in Photoshop CS5
Thanks so much! This is the last piece I’ve been looking for. The script is now considerably faster with only two commands per text layer. Now, if I could only create all text layers at one time... :)
On 3/23/11 6:27 PM, "Stan Cleveland" <email@hidden> wrote:
On Mar 23, 2011, at 2:29 PM, Fleisher, Ken wrote:
I cannot set properties of the text object at the same time as creating the layer because it seems there is no text object yet to assign properties to.
Ken, I agree with you that this seems to be a Photoshop-imposed limitation.
Also, I cannot set the contents of contents of the text layer in the same properties assignment because (well, I don’t know why, but the text doesn’t come out right).
set textobj to text object of textlayer
set properties of textobj to {position:{10, h - 10}, justification:left, size:24, ¬
stroke color:{class:Lab color, value_L:55, value_a:20, value_b:0}, font:"Helvetica"}
set contents of contents of textobj to "This is text"
It seems to work if you use just "contents" rather than "contents of contents". I would also eliminate the extra step of defining the "textobj" variable:
set properties of text object of textlayer to {kind:point text, position:{10, h - 10}, ¬
justification:left, size:24, stroke color:{class:Lab color, value_L:55, ¬
value_a:20, value_b:0}, font:"Helvetica", contents:"This is text"}
Stan C.
--
Ken Fleisher
Color Scientist
Imaging & Visual Services
National Gallery of Art
Washington, D.C.
Phone: (202) 712-7471
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden