Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop Photoshop scripting help

  • Photoshop scripting help

    Posted by Rob Stemm on January 17, 2008 at 6:40 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

    Rob Stemm replied 18 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Ekim Wahs

    January 17, 2008 at 9:44 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

  • Rob Stemm

    January 18, 2008 at 2:01 am

    That did the work. Thanks for your help!

    Rob

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy