# Library

## Hair Strand Builder Library

You can now **store your hair strands in a library** and easily share them across different scenes.\
You have the flexibility to save an **entire hairstyle**, specific **sections**, or even a **single strand**.

{% hint style="danger" %}
If your library assets were saved before V15.04. After import, strands will not work if you select them. Please update them by Menu > Update V14.03/14.05 to current. Once they are updated, you can then save them back to the library. Unfortunately, there's no way to automate this process.
{% endhint %}

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

### Creating a Category and Saving a Library Item:

1. Click on **‘New Category’** to create a folder for your library items.
2. Select the hair strands you want to save.
3. Isolate selected hairs (by clicking on the Isolate Button). This is optional, but will frame your strands better in the preview .png screenshot.&#x20;
4. Give your selection a name and click **‘Save’**.

<figure><img src="/files/UahRso9PyEPDFzjwgRNg" alt=""><figcaption><p>Create a Category first, select strands, isolate, enter a name and save</p></figcaption></figure>

<figure><img src="/files/Rq8cOLE0QHfgEFqTs08n" alt=""><figcaption><p>Saving a group of card coils as an library item can be useful the next time you need it.</p></figcaption></figure>

### Importing:

* Choose an item from the library and click the **‘Import’** button.
* The strands will be automatically loaded into the **Hair Strand Layer UI**.

Imported strands will include a "**randomly generated** **prefix"** to avoid overwriting existing elements. You can **rename the layers** or **move the strands** to another layer as needed.

{% hint style="info" %}
It's best practice to 'Rename' the layers as soon as they are imported to keep the scene clean. This will also avoid long prefix names if you decide to 'Save' the imported strands as another library item as well.
{% endhint %}

<figure><img src="/files/meFN7fOJe1F8N3P7XMki" alt=""><figcaption><p>Imported Hair Tube Strands will be imported with the layers that they were saved to, with a prefix.</p></figcaption></figure>

* If the strand layers have textures assigned, those will also be imported.

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

* When the same library items are imported, a copy of the material will be made.

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

* You can also save groups of strands that has a helper curve linked as a library item. Importing it back in will allow quick access and control to the strands as a whole.

<figure><img src="/files/8XYu9t7SWEJr7ujx8mR5" alt=""><figcaption></figcaption></figure>

### Deleting Library Items or Categories

{% hint style="danger" %}
**Important:** Deleting a file is permanent. Once deleted, the file cannot be recovered or restored from your system.
{% endhint %}

Deleting items

* Simply select the items and click on Delete.

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

Deleting entire Category

* Right click on the category list, and delete.

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

{% hint style="info" %}
If you need to switch Maya version, or share between artists, you can copy the entire folder from

**Tube Builder Library:**&#x20;

`\user\Documents\maya\<Maya Version>\presets\xgtc_tube2_lib\`&#x20;

**Card Builder Library**:&#x20;

`\user\Documents\maya\<Maya Version>\presets\xgtc_card2_lib\`&#x20;

Or simply prints out `cmds.internalVar(userPresetsDir = True)` in the script editor for the preset path , and look for **xgtc\_tube2\_lib** or **xgtc\_card2\_lib** folder
{% endhint %}


---

# 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/hair-strand-builders/library.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.
