how to render motion paths and bounding boxes in after effects
the boxes, handles, anchor points and motion paths you see while you animate are the best part of a breakdown. after effects never renders them: they're drawn in the viewer only, like rulers and guides, so they never reach the render queue.
that leaves two ways to get them into a video: record the viewer, which is quick and rough, or build them as real layers, which renders clean and see-through. here's both, by hand.
the manual way
- know why they don't rendermotion paths, handles and layer boxes are view options, not layers. they live in view → view options (ctrl+alt+u, cmd+option+u on mac) and only show for the layers you have selected. nothing in render settings turns them on.
- the quick way: record the viewerturn on handles, motion paths and motion path tangents in view options, select the layers you want to show, set the viewer to 100% and full resolution, and preview until the whole work area is cached so it plays in real time. then record the screen (win+alt+r starts a game bar recording on windows, cmd+shift+5 on mac) and crop to the viewer. it's rough: you get the viewer's pixels at screen size, no transparency, and any dropped frame shows.
- the clean way: give a layer its boxadd a shape layer with a rectangle, a stroke and no fill, and pick whip it to the layer you're showing. set the shape layer's position and anchor point to 0, 0, scale to 100% and rotation to 0, so it lines up with that layer's own space. then alt-click (option-click) the rectangle's size and paste:
and on the rectangle's position:var r = thisComp.layer("Title").sourceRectAtTime(time, false); [r.width, r.height]
swap "Title" for your layer's name. sourceRectAtTime is the layer's own box at that moment, and the parent carries the box through every move, scale and turn.var r = thisComp.layer("Title").sourceRectAtTime(time, false); [r.left + r.width / 2, r.top + r.height / 2] - mark the anchor pointin the same shape layer, add a small ellipse (8 x 8) with a stroke, and on the ellipse's position paste
thisComp.layer("Title").transform.anchorPoint. it sits on the anchor point however the layer moves. - draw the motion pathadd a second shape layer, not parented, choose add → path in its contents, and alt-click the path:
it samples where the layer's anchor point lands in the comp every other frame and joins the dots, so it follows parents and expressions too, which after effects' own motion path doesn't. give it a stroke and no fill. on a long layer it gets slow; sample every 4 or 5 frames instead.var L = thisComp.layer("Title"); var pts = []; for (var t = L.inPoint; t <= L.outPoint; t += thisComp.frameDuration * 2) pts.push(fromComp(L.toComp(L.anchorPoint, t))); createPath(pts, [], [], false); - keep the lines thinthe box takes on its layer's scale, so a layer at 300% gets a line three times as thick. on the stroke width, paste
value / (thisComp.layer("Title").transform.scale[0] / 100)to undo it. - keep them out of the final renderselect the wireframe layers and choose layer → guide layer. guide layers show in the viewer and stay out of renders, so your clean render stays clean. for the breakdown, set render settings → guide layers to current settings.
- render them see-throughto lay the lines over the finished video in an edit, solo the wireframe layers and render them on their own: output module → quicktime, format options → apple prores 4444, channels rgb + alpha. everything else comes out transparent.
it works, and it renders clean. it's also three or four expressions per layer, typed by hand, so a breakdown of twenty layers is dozens of them. sampled paths slow down on long layers, and none of this draws handles or keyframe tangents.
or let wireframer do it
wireframer does all of it from a panel. pick your layers, choose what shows (handles, anchor points, motion paths, keyframe tangents), box or fit, and press render: the lines are built as plain shape layers in a new wireframe comp, with no expressions, and rendered see-through right on top of your comp. 3d layers are drawn the way the active camera sees them. $5, pay what you want above that.
common questions
can after effects render motion paths?
not on its own. motion paths, handles and layer boxes are view options, drawn in the viewer only. to get them into a video, record the viewer, build them as shape layers with expressions, or use a panel like wireframer that builds and renders them for you.
how do i show the bounding box in an after effects render?
add a shape layer with a stroked rectangle, parent it to the layer, zero its position and anchor point, and drive the rectangle's size and position with sourceRectAtTime, as in the steps above.
how do i make a motion breakdown in after effects?
show the layers' boxes, anchor points and motion paths over the animation. record the viewer with view options on for a quick one, or build them as guide layers and render them see-through for a clean one.
what's the shortcut for view options in after effects?
ctrl+alt+u on windows, cmd+option+u on mac.
how do i render with a transparent background in after effects?
in the output module pick quicktime, apple prores 4444 in format options, and set channels to rgb + alpha.
why don't guide layers show in my render?
guide layers are left out of renders by default. render settings → guide layers → current settings puts them back.