Is this possible, or does it need to be manually calculated some how?
I realised I’ve asked this before!
If you can get a NSBezierPath then you can ask for its bounds.
What to do about this though Font.selectedLayers[0].selection.bezierPath.bounds()
doesn’t work?
(I’m not on my Mac right now.)
The layer should have a property ‘selectionPath’ or something similar.
1 Like
Using selectionPath
that Georg suggested, then your example, for now, would look like:
Font.selectedLayers[0].selectionPath().bounds()
The layer’s selectionBounds
property would include the handles whereas selectionPath().bounds()
is without.
3 Likes
Thank you! ! perfect