Automate-Sketch
Automate-Sketch copied to clipboard
Feature Request: Rearrange groups.
Imagine a magic action that rearranging the layers tree of an artboard automatically. For example - few layers that on top of one another will be grouped together, for example - I got my header rectangle and some labels on top of it, the plugin "understand" they are together and group them automatically, then continue to the next layers and locate them accordingly in a way that makes sense. Need to put some effort to build the right logic of how it really works (will love to brainstorm it with you).
@edenvidal Excellent idea!
By the way, I think the logic for that is pretty much recursive. Loop over the first group of layers and order them by y position first, x position second, visibility third. Then do so recursively for any layer groups. Right?
I think you nailed it. There is a simple pattern, some kind of repeating practice when grouping layers.