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

# 3D

Use `3D` to make a box follow text in a camera view. TextBox 3 draws the selected text and its background together on a composition-sized 2D solid that acts as a canvas.

## `Render Mode`

| Option         | What it does                                                                                                                                             |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `3D Plane`     | Builds the box in the text layer's plane. The box, padding, and stroke follow the layer's rotation, scale, and perspective                               |
| `Screen Space` | Fits an upright box around the text as it appears in the composition. The text keeps its perspective and pixel-based styling stays in composition pixels |
| `Off`          | Uses the effect directly on its own layer. This is the default for a regular text box                                                                    |

Use `3D Plane` for a title whose background tilts with it. Use `Screen Space` for a label that stays aligned to the screen as its text moves or rotates in 3D. For example, a stroke set to 4 pixels in `Screen Space` keeps that width in composition pixels as the camera zooms. The box still refits to the projected text.

`3D Plane` and `Screen Space` both use the active composition camera for 3D text. After Effects supplies its default camera when there is no camera layer.

## `Text Layer`

Select the text layer that the canvas should render. To edit the text or animate its 3D position and orientation, work on that source layer in the timeline. Adjust the box's styling on the canvas. Keep the source layer's in and out points over the frames you want to render.

If you use `Shape Mode` > `Custom`, draw the mask on the canvas layer and select it in `Custom Shape` > `Mask`. [Fit a custom mask](https://plugin-everything.gitbook.io/textbox-3/shape-mode.md).

## `Create 3D Setup`

1. Apply TextBox 3 to the text layer and make sure the effect is enabled
2. Open `3D` and click `Create 3D Setup`
3. Continue editing the effect on the new canvas, whose name ends in `TextBox 3D`. Choose `Screen Space` in `Render Mode` if you want the fitted box to stay aligned to the composition

The button moves this effect instance to a new 2D solid below the text, sets `Text Layer` to the original, enables the source layer's 3D switch, and turns its video switch off to prevent duplicate text. It preserves the effect's settings, keyframes, and expressions. If `Render Mode` was `Off`, it changes to `3D Plane`. An active mode is retained. To restore the original layer arrangement immediately after setup, use After Effects Undo. Switching `Render Mode` to `Off` renders the canvas layer's own input.

{% hint style="info" %}
The setup uses After Effects Copy and Paste and replaces the clipboard contents. Expressions that refer to `thisLayer` now evaluate on the canvas. Check those expressions and any links to the effect on its old layer after moving it.
{% endhint %}

<details>

<summary>Set up the canvas manually</summary>

Use a manual setup if you need to keyframe `Text Layer` or select the source with an expression.

1. Create a composition-sized 2D solid below the source text and apply TextBox 3 to the solid
2. In `3D`, choose `3D Plane` or `Screen Space`, then select the source with `Text Layer`
3. Turn on the source layer's 3D switch if it should respond to the camera, and turn off its video switch to prevent duplicate text

</details>

## If the box or text disappears

Keep the canvas a 2D layer. Check that `Text Layer` points to a text layer with visible characters at the current frame and that `Render Mode` is set to `3D Plane` or `Screen Space`. If the result disappears as the camera passes the text, adjust the camera or source position to keep the text in front of the camera plane.

Use [Transform](https://plugin-everything.gitbook.io/textbox-3/transform.md) to adjust the box or the rendered text independently. In `3D Plane`, `Transform Box` > `Position Z` moves the box along the 3D source layer's local Z axis.
