Skip to main content
mauerswald
Participating Frequently
January 28, 2016
Answered

Getting the bounding box of text outlines

  • January 28, 2016
  • 1 reply
  • 789 views

Let's say I'm getting the outlines of a text layer via AEGP_GetNewTextOutlines, how would I best determine the bounding box of this outline? I'm trying to test for whether the user's Text layer's text actually fits within a specified rectangle.

Thanks!

This topic has been closed for replies.
Correct answer Zhiqiang_Li

There's a method in "LayerSuite" called "AEGP_GetLayerMaskedBounds" is doing what you want

1 reply

Zhiqiang_LiCorrect answer
Inspiring
January 28, 2016

There's a method in "LayerSuite" called "AEGP_GetLayerMaskedBounds" is doing what you want

James Whiffin
Legend
February 12, 2019

Apologies for resurrecting this thread. I used AEGP_GetLayerMaskedBounds to get the bounds of the text layer but it doesn't seem to take into account any transforms, so even when I move the layer the bounds don't update. Am I doing something wrong?