> For the complete documentation index, see [llms.txt](https://motion-studio.mtmograph.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motion-studio.mtmograph.com/ae-extension/tools/trim-to-keys.md).

# Trim to Keys

## Description

Trim-to-Keys automatically trims selected layers to start and end at their first and last keyframes.&#x20;

## Setup

1. Select one or more layers with keyframes
2. Run Trim-to-Keys
3. Layers will automatically trim to their keyframe range

## Options

**In Point**\
When enabled, trims the layer's in-point to the first keyframe

**Out Point**\
When enabled, trims the layer's out-point to the last keyframe

{% hint style="info" %}
Add to your Motion Mini for quick access! This tool pairs perfectly with Stagger for creating sequential animations
{% endhint %}
