# Flatten Shape Layers

Connecting this Utility as a Deformer to a Shape will flatten the internal geometry hierarchy.

**Mode:**

* **Single Path** - flattens all geometry into one path. Note - this mode will remove any materials.
* **Single Layer** (keeps materials) - flattens the sub-mesh hierarchy into a single layer.

{% hint style="warning" %}
Order of operations is really important here.
{% endhint %}

{% hint style="success" %}
Using the images below as an example:

1. Create a [Text Shape](https://scenegroup.gitbook.io/cavalry/nodes/shapes/text-shape).
2. With the Text Shape selected, hold alt/option and click the Outline button in the Toolbar.
3. With the Outline selected, hold alt/option and click the Duplicator button in the Toolbar.
4. Load the Outline's UI into the [Attribute Editor](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/attribute-editor).
5. Right click on Deformers and select ***Add Deformers > Stagger***.
6. Set **Maximum** on the [Stagger](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/stagger) to **50** (or a setting that makes sense for your set up).

You should get something like:

<img src="https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-LYlqCObMwZ4hZ--ot1B%2F-LYlr-fLYbelUx86mxDB%2FScreenshot%202019-02-14%20at%2021.06.28.png?alt=media&#x26;token=1b8e8fbe-99fd-406a-a186-cdc959875a83" alt="" data-size="original">&#x20;

1. Create a **Flatten Shape Layer**.
2. Connect ***flattenShapeLayer.id*** > ***textShape.deformers***

You should get something like:

<img src="https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-LYlqCObMwZ4hZ--ot1B%2F-LYlqx3xIwvlnHuKG6dn%2FScreenshot%202019-02-14%20at%2021.06.41.png?alt=media&#x26;token=0f3adba1-2b1d-4aa2-a819-aff584cb1b65" alt="" data-size="original">&#x20;
{% endhint %}
