selection geometricBounds and true geometricBounds for clipped objects
Allow for access to the selection geometricBounds as a whole. Also bounds for the clipped area only (ignore hidden areas).
In Illustrator, the Transform window displays the position, width and height for all objects selected and it does not display clipped areas. when you size an object by entering a dimension, you don't have to worry about clipped areas. in scripting you do.
The geometricBounds, visibleBounds, controlBounds, height and width properties give you the size of clipped objects. for a couple of items you can check if each is clipped and if it is, you can then retrieve the first pathItem of the clipped group and get its geometricBounds.
This gets very complicated with a group that is not clipped containing clipped items. So first testing if the selected group is clipped will return false. So you dig inside of it and check to see if any group inside the group is clipped. Then you drill inside those groups to see if any group inside them is clipped. When you have all the clipped areas then you have to compare their bounding boxes to get the overall bounding box without the clipped objects. point being, it is really difficult to get the visible bounds of the selection.
But why should we do all this work for information that Illustrator already has displayed on the Transform window?
So why not just give this information to us? Please allow access to the numbers in the Transform window! Illustrator already knows these numbers. just give them to us please I beg you!
Furthermore allow for transforming selections as a whole like you would in the transform window.
-
Michael Eastman commented
Update on this issue regarding the C++ SDK?
-
Jared commented
We're experiencing this as well. Please also add this to the c++ SDK