Please suggest how to get/determine the visible bounds (top+left coords and width+height or Rect structure) of a group having a clipping mask or several masks? When a script asks for Visible Bounds, Illustrator provides the coords/size of the group like it does not have any clipping mask. So, you see a circle of 10px diameter (and these are the actual visible bounds of this group), but Illustrator says that the visible bounds are 50 px wide and 70 px in height.
I searched through this forum topics and found a suggestion to look at all the objects in the group and find which one of them is the clipping path/mask. Then take its coords/size. Is there any other/simplier way?
And what to do if the group contains multiple clipping masks of different shapes/sizes?
Thank you.