# Curve Tool Kit

<div align="left"><figure><img src="/files/qLkJ80DJEPqIPSfB4GCS" alt=""><figcaption></figcaption></figure></div>

## Overview

This is a tool kit consists of multiple small functions for Maya curves. We can dock the UI to the side for easy access.

<figure><img src="/files/t4ZJLgdvobD4ww2Po0rj" alt=""><figcaption></figcaption></figure>

* **Random Curve Select**
  * **​Set Selected Curves For Random Select:**
    * **​**Tag all selected Maya curves to be counted in the random selection.
  * **Random Select Slider:**
    * % for random curve selection.

<figure><img src="/files/DbXyvd7U4OV3oU9PbVc9" alt=""><figcaption></figcaption></figure>

* **Batch Curve Transform**
  * **​Pivot to Root:**
    * **​**Set pivot to the root of all selected curve(s).
  * **Batch Mode On:**
    * ​Toggle selection mode to curves only. This will affect all curves in scene. If you do not want some curves to be affected, please put them in a display layer and hide it.
    * After clicking on '**Batch Mode On**', Maya will only be able to select 'curves' in your scene.
  * **Batch Mode Off:**
    * ​Make sure to click on '**Batch Mode Off**' to set Maya selection back to normal.

{% hint style="warning" %}
Sometimes, curves with transform values (when it's too dramatic) can fall outside of the batch mode falloff area. If there are curves not being affected (gradient orange/red display), please freeze transforms.
{% endhint %}

<figure><img src="/files/LNTBZWO4fZqVadokCvoN" alt=""><figcaption></figcaption></figure>

* **Curve CV Selection**
  * Select "**First**", "**Last**", "**Next**" or "**Previous**" CVs based on current selections.

<figure><img src="/files/ZnHzlWq911pIu20KFylZ" alt=""><figcaption></figcaption></figure>

* **Curve Rebuild**
  * **Rebuild** - A simple curve rebuild. Default degree is set to 3. To build a curve with total of 8 CVs, put a span of 5.&#x20;
  * **Smooth** - Smooths selected curves with the strength value.
  * **Average Curves** - Scale the selected curves so they have equal length.
  * **Get Length** - Get the 'average length' of selected curves.&#x20;
  * **Set** - Scales the selected curves so they equal the defined length in the field box.

<figure><img src="/files/LITIsZgFsa4Sq2EmWJEc" alt=""><figcaption><p>Rebuild/Smooth/Average Curves</p></figcaption></figure>

<figure><img src="/files/NwUTh1wT0letdCAw7zBW" alt=""><figcaption><p>Get/Set Curves Length</p></figcaption></figure>

* **Functions**
  * **Mirror** - Makes a copy of selected curves and flips them over either X, Y, or Z axis.&#x20;
  * **Lattice** - Maya's default Lattice function.
  * **Check Overlapping Curves** - From selected curves, check if curves are sitting within the threshold distance.&#x20;
  * **Length Check** - Without selecting anything in scene, set a length, and click on Select. The tool will select all curves that are shorter than the defined length in scene. This can be useful to clean up curves that has almost 0 length in scene.

<figure><img src="/files/4ufdSpZZXlrRPqH5ma2j" alt=""><figcaption><p>Using Lattice On Curves and Baking it</p></figcaption></figure>

<figure><img src="/files/yOD3h64JwTKYE90pyAVi" alt=""><figcaption><p>Check for Overlapping Curves</p></figcaption></figure>


---

# 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://nobraintools.gitbook.io/maya-groomers-tool/maya-tools/curve-tool-kit.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.
