Groups and layout
Group layers together, clip them to a box, and place them by hand or in a row, column or grid.
- Shortcut
- ⌘G to group, Mod⇧G to ungroup
- Where
- Inspector, Object, Layout and In layout sections
A group is a layer that holds other layers. Its children move, hide and animate along with it. Every group has one of three layout types:
- Free (the default). You place each child yourself with its own X and Y.
- Flex. The children sit one after another in a row or a column. See Flex layout.
- Grid. The children sit in columns and rows. See Grid layout.
Creating a group
Select some layers and press ⌘G, or right-click and choose Group selection. The layers must all have the same parent. Nothing moves on screen, and the new group takes the place of its topmost member in the stacking order.
| Selection | Result |
|---|---|
| Several layers in a Free group or not in any group | A Free group around their bounds. |
| One layer | A Free group with the layer’s size and position. The layer sits inside it at 0, 0, and its rotation and scale move to the group. An image with a corner radius hands the radius to the group and turns on Clip contents. |
| Children of a Flex or Grid group | A Flex group in their place. It takes the parent’s direction and the children’s sizes, 100% settings and spans, so the parent’s layout doesn’t change. |
With Clip contents on new groups turned on (in , on by default), a new group gets a box the size of its members, with Clip contents on. When it’s off, the group has no box. Its Width and Height are Auto and show the area its children cover.
You can also draw a group as a box with the Group tool (G or F). Any layers completely inside the box go into the group.
Ungroup (⌘⇧G, or right-click) puts the children in the group’s place in the stacking order, and they stay where they were on screen. The group’s rotation and scale are applied to each child. Children of a Flex or Grid group keep the position and size the layout gave them.
Adding and removing children
- To add a layer to a group, drag it over the group and let go. To take a child out, drag it until its box is completely outside the group.
- In the Layers panel, drag a row into or out of a group’s row.
- A layer you draw over a group joins that group, unless New objects over groups is on in (it’s off by default).
Clip contents and Fit to contents
Both are in the Object section of any group that has children.
Hides anything that extends past the group’s box. The clip follows the group’s corner radius and corner shape.
In the Object header. Sets the box to the exact bounds of the children, without moving them. It’s for Free groups only; Flex and Grid groups use Auto sizes instead.


The Layout section
This section appears for any group with at least one child, except mask groups and boolean groups. Free / Flex / Grid at the top sets the type. With several groups selected, a change applies to all of them and undoes in one step. If their types differ, the control reads Mixed layouts, and values that differ read Mixed.
Free
In a Free group, each child is placed by its own X and Y, measured from the group’s top-left corner. The group never moves or resizes its children, and they can overlap. Use Free for artwork where every position is a design decision, such as a title over a photo, a diagram or a collage.
A Free group shows no other layout controls. If you set a Padding while it was Flex or Grid, the padding is kept and comes back when you switch back.
A Free group either has a box or not:
- With a box, Width and Height are numbers. The group can have a fill, a stroke and corners, and it can clip. Children can still sit outside it.
- Without a box, Width and Height are Auto. The group draws nothing, and the fields show the bounds of its children. Type a size to give it a box.
Children of a Free group set their X, Y, Width and Height in px or in % of the group’s box (text can also be Auto). They snap to each other and to the scene, and you can nudge them with the arrow keys. The alignment buttons line them up with the group’s box, or with the children’s area if the group has no box. When you resize the group, px children stay as they are and % children move and resize with the box.
On a blank scene, draw a group and place a site plan inside it at Width 100% and Height 100%. Add three labels over the plan and set the unit of each label’s X and Y to %. Resize the group. The plan keeps filling it, and each label stays over the same point.
- Resize: labels keep their place
Changing the type
Changing the type is a single undo step. Each type’s settings are kept, so they come back if you switch back.
Free to Flex or Grid
- A group without a box gets one the size of its children.
- If no direction is set yet, it comes from the arrangement. Children side by side give Row, and stacked children give Col.
- The children are ordered by their position along that direction, and that order becomes the stacking order.
- For Flex only, if no Alignment is set yet, the cross alignment comes from the edge the children line up on: left, center or right in a Col, or top, center or bottom in a Row. A child that spans the whole cross size isn’t counted. If none are counted, the alignment is center.
- If no gaps are set yet, the average spacing on each axis becomes Column gap and Row gap. Where no spacing can be measured, the gap is 16 px, and it’s never more than 500 px.
- Flex sets the size along the direction to Auto. Grid keeps both sizes and starts with 2 columns.
- Free to Flex: an even column
Flex or Grid to Free
Each child keeps the position the layout gave it, rounded to whole pixels. Child sizes of 100% and a group size of Auto become fixed sizes. Nothing moves on screen.
Flex to Grid and Grid to Flex
The order, gaps, padding and Distribute setting are kept. Changing to Flex sets the size along the direction to Auto.
The scene itself has no layout type, and a chart’s label groups have no type control.
Children of a Flex or Grid group
Each layout’s own page covers its In layout controls.
| Property or action | Behavior |
|---|---|
| X, Y | Disabled. They show the position the layout gives the child. |
| Width, Height | Editable in Fixed mode. In Auto and 100% they read auto. |
| Drag | Changes the child’s place in the order. The others move aside, and the new order takes effect when you let go. Several selected children move as one block. Dragging a child out of the group takes it out. |
| ⌥ drag | Places a copy in the new spot, and the original stays. |
| Bring forward, Send backward | Move the child one place later or earlier. |
| Alignment buttons, snapping, layout guides | No effect on a child the layout places. They do apply to the layout group itself when its parent is Free. |
| ⌘G | Wraps the selected children in a Flex group that takes over their sizes and spans, so the layout doesn’t change. |
| Paste, duplicate | A pasted layer goes right after the selected child, and a duplicate goes right after the original. |
To take one child out of the layout, turn on Freely positioned in its In layout section. The child stays in the group, moves with it and is clipped by it, but it’s placed by its own X and Y. The other children are laid out as if it weren’t there.
- Text. With Width at 100% and Height at Auto, text wraps at the width the layout gives it and takes its height from its lines. With Auto on both, it never wraps. See Editing text.
- Images and video. At 100% they fill their space, and the layer’s fit setting decides how the picture fills the box. See Images.
- Rotated and scaled children. A child with a fixed size takes up the upright box around its rotated shape, using its resting rotation. A build that rotates or scales it during the scene doesn’t move its neighbors.
- Fill, stroke and corners. A layout group can have them like any group, and Padding keeps the children off the edges. Grid lines are never drawn. To show the cells, give each cell’s child a fill or stroke.
- Scale tool. Scales the group’s size, padding, gaps, corners and children together.
Nesting
Any type of group can sit inside any other.
| Child group | In parent | Behavior |
|---|---|---|
| Flex or Grid | Free | Placed by its X and Y, and lays out its own children. |
| Free with a box | Flex or Grid | The parent places the box, and the inner children keep their positions in it. |
| Free without a box | Flex or Grid | Has no size to lay out. Give it a Width and Height, or use Fit to contents, first. |
| Flex | Flex | The most common setup: a Col with a title and a Row of cards, where each card is a Col. |
| Flex | Grid | Each cell holds a card. |
| Grid | Flex | A grid as one item, for example under a heading. |
| Grid | Grid | The inner grid’s columns don’t line up with the outer grid’s. |
A child group’s In layout section sets its Width and Height to Fixed, Auto or 100%. At 100%, it passes the space it’s given on to its own children. Two rules stop a parent’s size and a child’s size from depending on each other:
- If you set a child to 100% on an axis where its parent is Auto, the parent is first fixed at its current size.
- If you set a group to Auto on an axis where its children are 100%, those children are first fixed at their current size.
Combining with other features
- Masks and boolean groups. They hold children but have no Layout section, so their children are placed by X and Y. A group with contents can’t take part in a boolean operation.
- Charts and x-rays. Their parts are placed by the chart or x-ray itself and can’t be grouped.
- Tables. A table has its own rows and columns, so the Layout section doesn’t apply. See Tables.
- Layout guides. These are lines to snap to. They aren’t part of the picture and have nothing to do with a Grid group. See Guides and grids.
Limits
- A layer can only have one parent.
- A layout places its direct children only. To lay out the children of an inner group, set a type on that group.
- A Free group doesn’t keep gaps or alignment between its children and doesn’t resize with them. Use the alignment buttons, Fit to contents, or a Flex or Grid layout instead.