# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://motion-studio.mtmograph.com/ae-extension/tools/trim-to-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
