# Paint FX to Curves

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

## Overview

The PaintFX to Curves tool allows you to create Maya PaintFX strokes, and then convert them to Maya curves for quick blocking of a guide pass.

{% embed url="<https://youtu.be/y5imzHUQLZg?feature=shared>" %}

***

## Base Mesh

* **Create UV**
  * Duplicate a geometry, and click on Create UV button to start painting. I recommand doing the PFX paint on a duplicate mesh as the tool will perform an Automatic UV and delete history on the selected mesh.

## Paint

* **Paint Mode**

  * **Paint Effects** - This mode will allow you to paint curves with Maya's default paint effect strokes. Some users prefer this way as it can take in your tablet pen pressure, making it feels more artistic. Upon existing the UI, you will be prompted to convert the PFX strokes into curves.
    * Paint At Depth - Allows you to paint 'away' from the base mesh.

  <figure><img src="/files/ktyAwkSMKPurU7OrYr8C" alt=""><figcaption><p>Painting with PFX mode and Convert To Curve afterward</p></figcaption></figure>

  * **​Auto Convert to curve -** Each stroke will be automatically converted to Maya curve. Upon exiting the tool.
    * Target Length - Allow you to input a pre-defined length to painted curves.
    * Show Length - Displays the length of painted curve.

  <figure><img src="/files/kTVMbjBsJxUpwlRfuF6x" alt=""><figcaption><p>Painting with Auto Convert To Curve mode</p></figcaption></figure>
* **Paint**&#x20;
  * Enter the PFX drawing mode.&#x20;
* **Convert to Curves:**&#x20;
  * Convert **‘**&#x61;ll’ PaintFX strokes in the scene to Maya curves.

{% hint style="info" %}
You can now re-enter the PFX tool anytime using the repeat last step key (default Maya's G key).
{% endhint %}

***

## 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.

***

## Volume Mesh

* **Volume Mesh:**
  * Select the mesh, and click on ‘Volume Mesh’. This will give you a handle. Select the Z axis (blue) and drag it to inflate the mesh to a desired distance.​

<figure><img src="/files/8yzgIIjqvysfIlChkqyZ" alt=""><figcaption><p>Create a Volume Mesh</p></figcaption></figure>

* **Re-Attach Control:**
  * If you need to grab the handle again, select the Volume Mesh geometry in outliner (**envelopeMesh**), and click ‘**Re-Attach Control**’

{% hint style="warning" %}
​If the manipulator handle is missing after creating the Volume Mesh, delete the volume mesh (**envelopMesh**), ensure Construction History is enabled, and try clicking the button again.
{% endhint %}

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

***

## Curve Snap Controls​

<div align="center"><figure><img src="/files/jTkMycapK8shcYi5afGc" alt=""><figcaption></figcaption></figure></div>

Adjust the ramp curve to set the snap profile for selected curves. You can use the Slope/Curl/Semi Curl ramp preset.

* **Snap Curves:**
  * With curves selected (you can select the group node of curves as well), shift select the volume mesh, click Snap Curves to snap the curves to the volume mesh.

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

***

## Deforming Curves with Volume Mesh

* **Wrap Curves To Mesh:**
  * &#x20;To shape curves using a volume mesh, first select all the curves. Then, while holding 'Shift', select the volume mesh. Click 'Wrap Curves to Mesh' to bind the curves to the mesh. You may use any mesh type, such as a sphere, if desired.
* **Delete History/Reset Transform:**
  * &#x20;When you are done, select the curves, and the volume mesh, and click on ‘Delete History/Reset Transform’ to clean up.

{% hint style="warning" %}
Please make sure both the 'Curves' AND the deforming mesh are selected when deleting history. Otherwise, the curves may 'snap'.
{% endhint %}

<figure><img src="/files/NrFhw1GtxgTJhHcUxHKB" alt=""><figcaption></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/paint-fx-to-curves.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.
