> 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/compositing.md). Agents can also search and read this documentation through its [MCP server](https://plugin-everything.gitbook.io/textbox-3/~gitbook/mcp).

# Compositing

Use `Compositing` to set how the text and the generated box combine. You can fade the text by itself, cut letter-shaped holes in the box, or use the box as a mask for the text. In a [3D setup](https://plugin-everything.gitbook.io/textbox-3/3d.md), these controls apply to the text selected in `Text Layer`.

## `Matting Operation`

| Option                     | What it does                                                                                                                           |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `None`                     | Composites the text over the box. This is the default                                                                                  |
| `Subtract Text from Box`   | Cuts the text silhouette out of the box. Opaque parts of the text create holes at full `Input Opacity`                                 |
| `Matte Text to Box`        | Keeps the box visible and clips the text to the box's alpha. A partially transparent fill can also fade the text                       |
| `Matte Text to Hidden Box` | Clips the text to the box and hides the box. The matte treats `Fill Opacity` as 100% and still uses individual gradient stop opacities |

### Reveal text through a box

1. Shape the area you want to reveal with `Style` and `Padding & Size`
2. Set `Matting Operation` to `Matte Text to Hidden Box` and leave `Input Opacity` at 100%
3. Turn on `Transform Text` > `Enable` and animate `Position X` or `Position Y` to move the text through the hidden box

Use `Matte Text to Box` if you also want to show the background. [Move the text independently](https://plugin-everything.gitbook.io/textbox-3/transform.md).

### Combine a matte with a stroke

For `Draw Order` set to `Below Fill` or `Above Fill`, a `Normal` stroke adds to the matte and a `Subtract` stroke cuts into it. In `Solo`, the hidden fill supplies the matte.

A stroke drawn `Above Text` is applied after clipping. To frame clipped text with a visible outline, choose `Matte Text to Hidden Box`, set `Stroke Mode` to `Normal`, and choose `Above Text` for `Draw Order`. A `Subtract` stroke drawn `Above Text` can cut the text and the box. [Set the stroke draw order](https://plugin-everything.gitbook.io/textbox-3/stroke.md).

## `Input Opacity`

`Input Opacity` controls how much of the original text contributes to the result. It defaults to 100%. With `None` selected, keyframe `Input Opacity` to fade the lettering over the box. Set it to 0% to show the generated fill and any visible stroke by themselves.

In `Subtract Text from Box`, `Input Opacity` controls how strongly the letters cut into the box. Lower it for translucent cutouts, or set it to 0% to remove the cutout. To fade the fill itself, adjust `Style` > `Fill Opacity`. [Set the fill opacity](https://plugin-everything.gitbook.io/textbox-3/style.md).
