Hot Door CORE Forum

Full Version: current document selection bounds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It may be convenient for users to have a CORE function that returned the bounds of the current selection. I wrote a utility function that parses the art returned in HDI_CORE_ILLUSTRATOR->currentDocument()->selectedArt() and returns an ArtboardRect. It excludes the bounds of LayerGroups included in the selection since they include all layer art, selected or not. This makes it easy to get the selection center, as well as its bounds.

Again, my function provides that for me; I'm just suggesting this as a convenience for other users, particularly newer ones.