07-15-2018, 06:13 AM
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.
Again, my function provides that for me; I'm just suggesting this as a convenience for other users, particularly newer ones.