Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Hamaas979

1 Comments

Sorted by latest first Latest Oldest Best

 

@Michele215

To grab the bounding box of the currently selected paragraph text layer:

var t = activeDocument.activeLayer.textItem;
alert(t.width + ", " + t.height);


This is documented in the JavaScript Scripting Reference (TextItem properties are listed starting on page 179)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme