Get frames of overrides
✓ Published0🌍 Public
KKevinGutowski
Last edited Mar 31, 2020
Created on Mar 31, 2020
This example demonstrates how to extract and log the bounding boxes for every override associated with a selected layer’s container in a Sketch document. The script accesses the first selected layer, retrieves its override container, and iterates through the flattened children to print each override’s path bounding box to the console. It relies on the Sketch JavaScript API’s `sketchObject` and the custom `CGPathGetPathBoundingBox` function, with the data sourced directly from the user’s active document selection.
AI-generated description