# Paint FX to Curves

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FWroUDQHna8rSKRwXSWIO%2FxgtPaintFX_user.jpg?alt=media&#x26;token=c5050644-476a-4ac4-8c5b-b525308ab841" 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/tzpJN6dCwEs" %}

***

## 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FDYFVvXHUkYiex1nv4RfW%2Fpaint_pfx_mode.gif?alt=media&#x26;token=d760b51d-f005-48c8-883f-7eb44954ee45" 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FZmu1sYHAESXYbMGDOCjW%2Fpaint_auto_convert_mode.gif?alt=media&#x26;token=0105e0a8-086f-4b35-ad04-334380b27355" 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FxfBqEpDksnAuMNCM6pKD%2FvolumeMesh_V14.gif?alt=media&#x26;token=0794461f-72b0-4400-a10a-435c4943d35f" 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FrdISAJBgSaETlYnn4ys7%2Fconstructionhistoryon_orig.jpg?alt=media&#x26;token=4784c5c0-c603-4dcc-87b7-4f60b16f2d6d" alt=""><figcaption></figcaption></figure>

***

## Curve Snap Controls​

<div align="center"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2Fh6FH4pKjUpHN0xzMN4AY%2Fimage.png?alt=media&#x26;token=2359edb0-6de2-46a5-a324-22873cbf4e29" 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FqBokriUMut9gXT5uXv7x%2Fsnap_with_curl_profile_V14.gif?alt=media&#x26;token=ec5cc0fd-833e-488e-aa62-5c85a1555221" 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="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FZawaiBtqxJZMFto7nkS2%2Fwrap_V14.gif?alt=media&#x26;token=6d7cbfe0-b772-479c-966f-6a45faf8262b" alt=""><figcaption></figcaption></figure>

***

