Pen
Draw a path point by point, and edit the points of any path or shape.
- Shortcut
- P
- Where
- Toolbar, pen button
- Makes
- A path
The Pen draws a path one point at a time. A click places a corner, and a press and drag places a smooth point with curve handles. Leave the path open as a line, or close it into a shape with a fill. The way you edit points is the same for pen paths, pencil strokes, lines and shapes.
Drawing a path
Pick the tool
Press P, or click the pen button in the toolbar.
Place points
Click for a corner point. Press and drag for a smooth point, pulling out two equal, opposite handles. A preview segment follows the pointer.
Finish
Click the first point to close the path. To leave it open, double-click or press ↵ or Esc.
The path is selected and the tool returns to Move. A new path has a 2 px accent stroke and no fill, unless the tool settings say otherwise. A path needs at least two points, so finishing with one creates nothing.
- Pen tool: click for corners
- Drag for a curve
- Click the start to close
The other keys for drawing are in the gesture table. A path in progress isn’t part of the deck until you finish it, so collaborators don’t see it, and opening another scene discards it.
Tool settings
While the Pen is active, the inspector shows Pen tool, with Fill, Stroke, Weight (0.1 to 100 px), Alignment, Dash, Gap, Cap, Start and End, the same controls as the Path section below. They apply to the next path you draw and are stored on this device. The fill is drawn only once a path is closed.
The Path section
A selected path has a Path section below Object.
Shown when at least one part of the path is closed. See Fill and stroke.
Choosing a stroke shows the controls below.
Stroke Inside, Stroke Center or Stroke Outside on a closed path. It is disabled on an open path, which is always stroked on its center.
Butt, Round or Square. It shapes the ends of an open path and of each dash. See Line.
How corner points are drawn: Miter (pointed), Round or Bevel (cut off).
The marker on the first point: None, Arrow, Triangle, Circle or Square. Open paths only.
The marker on the last point. Open paths only.
Slides the dash pattern along the path.
Closing a path shows Fill, enables Alignment and hides Start and End. Opening it reverses that.
Editing points
To show a path or pencil stroke’s points, select it and press ↵, or double-click it. For a shape or rectangle, double-click it. A selected line always shows its two points. To stop editing, press ↵ or Esc, click outside, or pick another layer or tool.
Corners are drawn as square grips and smooth points as round grips. A selected point shows its handles.
| Gesture | Result |
|---|---|
| While drawing | |
| drag | Places a smooth point. A drag under 1 px leaves a corner. |
| ⇧ click | Places the segment from the previous point at a multiple of 45°. |
| Click the first point | Closes the path. It needs 3 points or more, and the click must land within 8 screen pixels. |
| ⌫ | Removes the last point. Removing the only point cancels the path. |
| While editing | |
| click a point | Selects it. |
| ⇧ click a point | Adds it to the selection or removes it. |
| Drag a point | Moves it, along with any other selected points. |
| ⇧ drag a point | Keeps the move horizontal, vertical or at 45°. An end point of an open path is measured from its neighbor, so the segment levels out. |
| Arrow keys | Nudge the selected points, or the layer when no point is selected. |
| Drag a handle | Reshapes the curve. On a smooth point, the other handle mirrors it. |
| ⌥ drag a handle | Moves this handle on its own, and the point becomes a corner with independent handles. |
| ⌥ click a point | Switches it between corner and smooth. |
| ⌥ drag a point | Makes it smooth and pulls its handles out along the drag. |
| ⌥ click the path | Adds a point without changing the shape. ⌥ drag adds it and pulls out its handles. |
| Select an end point, click the other end | Closes an open path of 3 or more points. |
| ⌫ | Deletes the selected points and joins their neighbors. A part of the path left with fewer than two points is removed, and so is the layer if that was its only part. With no point selected, it deletes the layer. |
A corner made smooth gets handles along the line between its neighbors, each a third of the distance to that neighbor. While you hold ⌥, the pointer shows the convert or add-point cursor.
- Option-drag to add a point
A dragged point snaps to the scene, guides, the grid and neighboring layers, except inside a rotated group. It lands on a whole pixel at 100% zoom and below, or at any zoom with Snap to pixel grid on. Above 100% without it, a point lands on a hundredth of a pixel.
The point menu
Right-click a point to open its menu. The menu acts on the selected points, and a point you right-click that wasn’t selected becomes the selection. Each command is one undo step.
- Convert to linear removes the handles. On a point without handles, the item reads Convert to curve.
- Break tangents makes the two handles independent without changing the curve. On independent handles, Unbreak tangents lines them up again, and each keeps its length.
- Even length tangents sets both handles to their average length. It is disabled when they are already equal.
- Open path here opens a closed path by removing the segment that runs into this point. No point is added. This point becomes the start, and the one before it becomes the end. On an open path, Split path here cuts it into two separate parts (not at the ends), and Close path joins its ends (3 points or more).
- Set as start point works on closed paths and sets where a Draw build begins.
- Reverse direction swaps the Start and End markers and the direction of a Draw build.
- Select all points selects every point on that part of the path.
- Delete
Editing the points of a shape
Double-clicking a rectangle, ellipse, arc, polygon, star or splat shows its points, and the shape keeps its own controls. The first edit the shape can’t describe, such as moving one point, adding a point or converting a corner, turns it into a path, and the Path section replaces the shape’s settings. The first time this happens on a device, Edit shape as paths? asks afterward. Keep paths keeps the edit and stops asking, and Cancel restores the shape.
A press on a shape’s point must move 3 screen pixels to count as a drag, so a click never converts the shape. A rectangle whose points still form a rectangle stays a rectangle, and moving all of a shape’s points moves the shape.
Examples
For a travel map, press P and click at the departure city. Press and drag at each turn of the coast, then double-click at the destination. Set Dash to 10 and End to Circle, then add a Draw build in Animate mode so the route draws itself.
- Pen tool: drag at each turn
- Dash 10 and a Circle end
Draw a star, double-click it, and ⌥ click each outer point. Confirm Keep paths, and the star becomes a path with rounded tips and sharp inner corners.
Combining with other features
- Draw build. Offered for paths and lines. It draws the stroke from the first point to the last at a constant rate, and does nothing without a stroke. See Builds.
- Keyframes. You can keyframe position, scale, rotation, opacity and dash offset, but never the points.
- Layout groups. While you drag a point, the path’s box keeps a fixed size, and the layout sizes it again when you let go.
- Scale tool. Multiplies point positions, handle lengths and stroke weight.
- Charts. The chart places its own lines, so you can’t edit their points.
- Boolean shapes. A path combined into a boolean shape loses its markers, because a boolean shape has a fill and a stroke but no Start or End.
- Copy as SVG. ⌘⇧C copies a selected path as SVG markup.
Limits
- The Pen can’t continue an existing open path from one of its ends.
- Selected points must all be on one part of a path.