Hot Door CORE Forum
current document selection bounds - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Feature requests (http://hotdoorcore.com/forum/forumdisplay.php?fid=7)
+--- Thread: current document selection bounds (/showthread.php?tid=180)



current document selection bounds - Rick Johnson - 07-15-2018

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.