> For the complete documentation index, see [llms.txt](https://docs.motorica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.motorica.com/documentation/style-cloning/how-to-guides/edit-an-animations-root-motion-data.md).

# Edit an Animation's Root Motion Data

{% hint style="info" %}
Below is a text version of an old video guide (new guide in the works!)
{% endhint %}

## Root Motion Extraction Basics

### **1. Introduction to Root Motion Extraction**

<img src="https://loom.com/i/1bf6d3887f464f23995f3faa0005d9b9?workflows_screenshot=true" alt="generated-image-at-00:00:01" height="240" width="384">

* Overview of the new Advanced Root Motion Extraction features available in the Style Cloning Dashboard.

### **2. Understanding Root Motion Extraction**

<img src="https://loom.com/i/4009411b93584bd59a3522ba329d005f?workflows_screenshot=true" alt="generated-image-at-00:00:10" height="240" width="384">

* Definition: The process of generating root motion from mocap data that lacks it.
* Example: Transforming a mocap file without root motion into one with root motion.

### **3. Using the Style Cloning Dashboard**

<img src="https://loom.com/i/8a5d3bc6a936497cb3013b0162d5cea6?workflows_screenshot=true" alt="generated-image-at-00:00:33" height="240" width="384">

* Access the Style Cloning Dashboard and create a new Style Clone (e.g., Axe Wielder Alerted).
* Upload mocap files for processing.

### **4. File Upload and Validation Process**

<img src="https://loom.com/i/686899b4739e4d5cb5b7ea92dd2f132d?workflows_screenshot=true" alt="generated-image-at-00:01:05" height="240" width="384">

* Uploaded files undergo validation for:
  * Correct file naming
  * Skeleton naming and hierarchy
  * Proper reading by the system.

### **5. Extracting Root Motion**

<img src="https://loom.com/i/ac68b59da49a4406a08c0044695802d7?workflows_screenshot=true" alt="generated-image-at-00:01:30" height="240" width="384">

* After validation, the system extracts root motion from the uploaded files.
* Users can preview the extracted animations and check for issues.

## Optimizing Your Training Data

### **6. Providing Context for Better Extraction**

<img src="https://loom.com/i/e8247d7a7a284c0a8b0d2260114ff958?workflows_screenshot=true" alt="generated-image-at-00:02:20" height="240" width="384">

* Importance of giving context about the uploaded files to improve root motion extraction.
* Example: Using a strafing animation where the actor faces the same direction.

### **7. Editing Root Motion Settings**

<img src="https://loom.com/i/7e0495707b174f6c89ad5eae03619744?workflows_screenshot=true" alt="generated-image-at-00:03:16" height="240" width="384">

* Access advanced settings for individual animations.
* Lock rotation to maintain consistent root bone rotation throughout the animation.

### **8. Inputting Specific Rotation Angles**

<img src="https://loom.com/i/cfd023f8dbf441de812ee9f2fdbd9fee?workflows_screenshot=true" alt="generated-image-at-00:05:06" height="240" width="384">

* Option to specify exact angles for root bone rotation (e.g., locking to zero degrees).
* Ensures accurate representation in the final animation.

### **9. Handling Idle Animations**

<img src="https://loom.com/i/3650470a87bc4568a9ea10ffcb34371e?workflows_screenshot=true" alt="generated-image-at-00:06:04" height="240" width="384">

* For idle animations, lock both rotation and position to maintain stability.
* Use auto-detect for position to avoid errors.

### **10. Managing Turn-in-Place Animations**

<img src="https://loom.com/i/21cc551345104197ac70d1a5f050fc92?workflows_screenshot=true" alt="generated-image-at-00:07:17" height="240" width="384">

* Lock position while allowing rotation to change during turns.
* Adjust settings as needed for desired outcomes.

### **11. Batch Processing for Efficiency**

<img src="https://loom.com/i/e71eefbe24d945a48c136766eda1af67?workflows_screenshot=true" alt="generated-image-at-00:08:31" height="240" width="384">

* Select multiple animations (e.g., all strafes) to apply consistent settings quickly.
* Rerun root motion extraction for improved results.

## **Our Recommended Workflow**

<img src="https://loom.com/i/986c38961a3648b8b858becea00c345d?workflows_screenshot=true" alt="generated-image-at-00:09:24" height="240" width="384">

* Upload files to the Style Cloning Dashboard.
* Use advanced root motion settings for optimal extraction.
* Review all animations for errors before finalizing.

## **Conclusion and Support**

<img src="https://loom.com/i/946b497d6fe34a4c8306997296179d4f?workflows_screenshot=true" alt="generated-image-at-00:10:23" height="240" width="384">


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.motorica.com/documentation/style-cloning/how-to-guides/edit-an-animations-root-motion-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
