> For the complete documentation index, see [llms.txt](https://plugin-everything.gitbook.io/textbox-3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugin-everything.gitbook.io/textbox-3/multi-shape.md). Agents can also search and read this documentation through its [MCP server](https://plugin-everything.gitbook.io/textbox-3/~gitbook/mcp).

# Multi Shape

Use `Multi Shape` to draw separate backgrounds on one text layer. The effect fits each shape to its group, then applies the same styling controls to all the shapes.

## `Shape Grouping`

| Option          | What it does                                                                                           |
| --------------- | ------------------------------------------------------------------------------------------------------ |
| `Whole Layer`   | Draws one shape around the visible text in the layer. This is the default                              |
| `Per Character` | Fits a shape to each character group, which can include dots, accents, and inner outlines              |
| `Per Word`      | Fits a shape to each word within a line                                                                |
| `Per Line`      | Fits a shape to each line of text                                                                      |
| `Per Path`      | Fits a shape to each individual text outline. An inner outline or a detached dot can get its own shape |

Spaces and empty lines add no shapes of their own.

## `Path Consolidation`

| Option           | What it does                                                                                                                          |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `Proximity`      | Groups outlines based on their position and the threshold settings. This is the default                                               |
| `Adobe Internal` | Uses After Effects' glyph, word, and line grouping when available. Useful for wrapped text or when gap-based grouping is hard to tune |

`Path Consolidation` applies to `Per Character`, `Per Word`, and `Per Line`. When After Effects grouping is unavailable, the effect uses `Proximity`. The separation guide legend identifies this as `Proximity (native fallback)`.

## `Unify`

Use `Unify` to make backgrounds share edges while keeping the current character, word, line, or path groups. It uses the visible text at the current frame.

| Option            | What it does                                                       |
| ----------------- | ------------------------------------------------------------------ |
| `Width`           | Fits each group to the left and right edges of the full text block |
| `Height`          | Fits each group to the top and bottom edges of its own line        |
| `Width & Height`  | Combines both fits                                                 |
| `Left` or `Right` | Aligns just that edge to the full text block                       |
| `Top` or `Bottom` | Aligns just that edge to the group's own line                      |
| `None`            | Uses each group's own bounds. This is the default                  |

Choose `Per Line` with `Unify` set to `Width` to give a short second line the same horizontal fit as a longer first line. Choose `Per Word` with `Height` to align the tops and bottoms of word backgrounds within each line. [See how sizing and captured line heights affect the fit](https://plugin-everything.gitbook.io/textbox-3/padding-and-size.md).

## Tune proximity grouping

Use `Proximity` to tune grouping with the thresholds. They measure pixels in the source text before padding and box transforms.

* `Threshold X` controls horizontal tolerance for grouping outlines. In `Per Word` it also sets the largest gap the effect bridges between characters on the same line
* `Threshold Y` controls vertical tolerance for grouping outlines such as accents and dots
* `Threshold Newline` extends the range used to detect a line. Increase it if parts of one line are detected as separate rows

For per-word backgrounds, increase `Threshold X` if one word splits into several groups. Decrease it if adjacent words join. If outlines from separate lines join, reduce `Threshold Y` before adjusting `Threshold Newline`. If the lines still merge, reduce `Threshold Newline` to narrow the line detection range. If the groups are correct and the painted boxes overlap, reduce `Style` > `Padding`.

## Check groups and overlaps

Turn on `View Separation Guide` to see each group in a different color with a numbered badge. In `Proximity`, dashed boxes show the threshold bounds. `Show Lines` adds line markers so you can check which outlines belong to each line.

{% hint style="warning" %}
The separation guide replaces the rendered image. Turn off `View Separation Guide` before exporting or rendering the finished composition.
{% endhint %}

Use `Reverse Draw Order` to swap which backgrounds appear on top where they overlap.
