# camera

Reference rule for ManimGL CameraFrame controls. Helps write 2D pans, zoom sequences, and 3D view changes without syntax errors.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/camera.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/camera

## What it does

The rule guides code generation around ManimGL's `self.camera.frame`. Because the frame functions as a `Mobject`, it supports regular positioning helpers like shifts and scaling. The guide outlines 2D frame panning, dimension changes, and smooth object tracking through `add_updater` callbacks.

For spatial scenes, it documents 3D orientation setups using the `reorient()` helper alongside direct Euler angle adjustments. It also includes examples for continuous rotations and keeping 2D titles locked in screen space using `fix_in_frame()`. Since these methods rely entirely on the ManimGL framework, attempting to run them in Community Manim will fail.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/camera.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/camera.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/camera.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/camera.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/camera.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/camera.md

## When to use it
- track a moving object with the camera using frame updaters
- switch 3D perspective to isometric or top-down views
- keep 2D interface labels steady while the 3D scene rotates
- animate camera zoom transitions across grouped mobjects

## Example prompts
- Create a ManimGL scene where the camera rotates continuously around a sphere
- Add a 2D title locked with fix_in_frame while the frame reorients to isometric
- Show how to zoom in on a specific mobject using set_width and move_to

## Similar
- [camera-systems](https://affpapa.org/en/nevibecode/skills/camera-systems.md) — skill · 14000 installs
- [roblox-camera](https://affpapa.org/en/nevibecode/skills/roblox-camera.md) — skill · 3300 installs
- [build-game-camera-controls](https://affpapa.org/en/nevibecode/skills/build-game-camera-controls.md) — skill · 1600 installs
- [camera-cinematography](https://affpapa.org/en/nevibecode/skills/camera-cinematography.md) — skill · 653 installs
- [godot-camera-systems](https://affpapa.org/en/nevibecode/skills/godot-camera-systems.md) — skill · 627 installs
- [camera-pan-zoom-controls](https://affpapa.org/en/nevibecode/skills/camera-pan-zoom-controls.md) — skill · ★ 51 repo stars

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
