# Guide Snap

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2Fit2KwheeRvYojbAJI29X%2FxgtSnapGuideToTube_user.jpg?alt=media&#x26;token=23625f58-a283-424a-8d98-eeb4ebd902b7" alt=""><figcaption></figcaption></figure></div>

## Overview

1. This tool has two main functions: For **Daz Studio** workflow where the creation of hair does not originate from Maya Xgen and the guides need to be snapped to tubes/cards or curves.
2. Merging curves that goes into a French braid style hair.
3. You can now use a ramp to control the tip/root snapping strength.

{% embed url="<https://youtu.be/l-47aAy8KH4>" %}

***

## Merge Side Curves into a French Braid

1. Use the Curve To Braids Tool to create center curves.
2. **NOTE: The 'first CV' of Maya curve need to be "sitting on" or "through" the scalp geo, it can not be floating in 3D space.**
3. Select a guide, and shift select a Maya curve and click Snap Guide.
4. Remove excess points and sculpt the guide better to fit with the hair flow.
5. Please be noted that using Undo (Ctrl + Z) will not work due to nature of XGen.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FftiAcDAUlXVeAisMKTSN%2Fsnapguide-v3_orig.gif?alt=media&#x26;token=fc6630bc-9b12-4428-9c48-580914dd30a3" alt=""><figcaption></figcaption></figure></div>

You can also snap a guide to a Maya curve. Use XGen's add guide function, with the new guide selected, select another curve in scene and click on Snap Guide.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FY67HWsBTHILf8L0IkZEQ%2Fsnapguide-v5_orig.gif?alt=media&#x26;token=81f672d3-d6dd-4f02-97e4-5239ecece30c" alt=""><figcaption></figcaption></figure></div>

## Using The Ramp Control

* When the ramp value is all the way up, it's the 'full' snapping strength. Here we are snapping just the tip of an XGen guide to a Maya curve with a fall off (Tip:1.0, Root:0.0).

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FbstFjCp5k8DvZMv2MCmT%2Fguide-snap-ramp1_orig.gif?alt=media&#x26;token=fc3784a1-22f3-40b7-b10c-aa59081ea1d2" alt=""><figcaption></figcaption></figure></div>

* When the ramp value is half way up, it uses half of the snapping strength.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FSsKyA2T4JrHxw1TQwxed%2Fguide-snap-ramp2_orig.gif?alt=media&#x26;token=2829e9e7-5323-480e-b80d-e91e1ddcc905" alt=""><figcaption></figcaption></figure></div>

***

## Daz Studio Guides Snap to Curves

Another popular usage to this tool is for Daz users, to reconstruct the exported curves from Daz studios into XGen guides.

​As the snapping is still based on Maya curves, you will need to convert all the tubes/cards into Maya curves first. If the geometries are tubes, make sure Extract From is set to “Tubes”. ​Set to “Cards” if they come in as cards. Then select all the tubes/cards (NOT the groups), and click on the ‘Create Center Curve’ button. This will create a curve in the ‘center’ of each tube/card. Please note, this will create a ‘xgt\_guideSnap\_curves’ group and the extracted curve(s) will be put under it.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FMYzwVPnWUKubEfmgKES9%2Fimage64_orig.gif?alt=media&#x26;token=bfbebae9-0bb3-4d6f-96f4-c72f23583bb1" alt=""><figcaption></figcaption></figure></div>

To snap single guide to curve, select the guide first, and shift select the a curve, then click “Snap Guide”.

<div align="left"><figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2FWs29ZdBrn6c6r5kbfOAE%2Fsnapguide-v1_orig.gif?alt=media&#x26;token=aa1b47c8-65f2-45ff-a1fb-9569e42af2e2" alt=""><figcaption><p>Snap a single guide to curve</p></figcaption></figure></div>

To batch snap, select the Xgen description node (Or the subdPatch node), and shift select the curve ‘group’ (‘xgt\_guideSnap\_curves’ ). Click ‘Batch Snap Guide’.

<figure><img src="https://454332562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyyK7o0fNRXvtva8vEkG%2Fuploads%2F7h4c7dkg5e0PHsEFuJo1%2Fsnapguide-v2_orig.gif?alt=media&#x26;token=8985facd-fa8f-485e-8620-b9868016ff1e" alt=""><figcaption><p>Batch snap</p></figcaption></figure>

***
