Skip to main content
Inspiring
February 26, 2024
Answered

How do I get the boundaries (or the size) of the frame that a graphic is placed in?

  • February 26, 2024
  • 2 replies
  • 540 views

I want to get the boundaries (or the size) of the frame that a graphic is placed in.

Something like 

app.activeDocument.allGraphics[0].frameBounds;
or
app.activeDocument.allGraphics[0].frameWidth;
app.activeDocument.allGraphics[0].frameHeight;
 
Thanks.
This topic has been closed for replies.
Correct answer Kasyan Servetsky

For example, you can use this function.
More examples are here in the Geometry: bounds, width, height, etc. section

2 replies

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
February 26, 2024

For example, you can use this function.
More examples are here in the Geometry: bounds, width, height, etc. section

Inspiring
February 26, 2024

Thank you for your reply!

brian_p_dts
Community Expert
Community Expert
February 26, 2024

someGraphic.parent.geometricBounds;

Inspiring
February 26, 2024

Thank you very much! That was simple. 🙂