Automate-Sketch icon indicating copy to clipboard operation
Automate-Sketch copied to clipboard

Feature Request: Rearrange groups.

Open edenvidal opened this issue 8 years ago • 3 comments

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 avatar Dec 21 '16 20:12 edenvidal

@edenvidal Excellent idea!

davidklaw avatar Dec 21 '16 20:12 davidklaw

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?

davidklaw avatar Dec 21 '16 21:12 davidklaw

I think you nailed it. There is a simple pattern, some kind of repeating practice when grouping layers.

edenvidal avatar Dec 21 '16 21:12 edenvidal