To create an outline for a text layer in After Effects, follow these steps:
- Select the text layer in the timeline.
- Go to the "Layer" menu and choose "Layer Styles."
- Click on "Stroke" to add an outline to the text.
- Adjust the settings such as color, size, and opacity of the outline.
- Preview the text layer with the outline applied to see the effect.