FORUMS: list search recent posts

Photoshop scripting help

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
graphic43
Photoshop scripting help
on Jan 17, 2008 at 6:40:53 pm

I have a PARAGRAPHTEXT text box in Photoshop that I plan on populating with text using .jsx scripting. One thing I need to do is to center the text box vertically between two y values and save a final image. Is there anyway for the script to determine if the text has wrapped to the second line in the PARAGRAPHTEXT text box? If I know there are two lines of text the y value will be different than if there is only one line of text.

Thanks for any advice,

Rob


Return to posts index

ekim wahs
Re: Photoshop scripting help
on Jan 17, 2008 at 9:44:01 pm

try using
var x = app.activeDocument.activeLayer.bounds

//returns array of left side , top, right side, bottom

alert("bottom = "+x[3])

Mike Shaw
Photoshop QE


Return to posts index

graphic43
Re: Photoshop scripting help
on Jan 18, 2008 at 2:01:56 am

That did the work. Thanks for your help!

Rob



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]