Skip to main content
rule CX Codex

camera — Claude Code rule: what it does, how to install

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

AGPL-3.0 ★ 78,316 updated 2026-10-24

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/camera.md
Open on GitHub

What camera 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.

What it helps with

  • 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 for the agent

  • 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

How to install camera

Manually: put the files in place

.claude/rules/camera.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about camera

How to install the camera rule in Claude Code?

Place the rule file at .claude/rules/camera.md within your repository root.

What does the camera rule do?

It provides syntax patterns and examples for controlling ManimGL's CameraFrame in 2D and 3D scenes.

Which method fixes UI labels on screen during 3D rotations?

Call fix_in_frame() on the text or 2D mobject to keep it pinned to screen coordinates.

Similar IDE rules

All IDE rules for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set101

The whole set →
transform-animations transform-animations — a rule that teaches Claude Code and Codex how to transform objects in ManimGL — from basic shape morphing to complex function-based transformations. Use it when writing Python animations of mathematical objects. CX Codex +1 ★ 78,316repo stars embedding embedding instructs your coding agent to debug ManimGL scenes interactively via IPython, letting you test object positions and animations without restarting the render. CX Codex +1 ★ 78,316repo stars vertical-spring-ticker vertical-spring-ticker is a rule for Claude Code and Codex that defines a slot-machine vertical ticker with additive GSAP spring physics. Each spring advances the stack one discrete step instead of a smooth scroll. CX Codex +1 ★ 78,316repo stars multi-phase-camera multi-phase-camera — a rule for animated web scenes: the camera moves through 2-3 zoom phases (pull-back, focus, push) with continuous micro-drift on top. For when a single linear zoom feels mechanical. CX Codex +1 ★ 78,316repo stars scale-swap-transition The scale-swap-transition rule describes a morph-like swap between two DOM elements using a shrinking exit and a springy entrance. Use it for UI state changes. CX Codex +1 ★ 78,316repo stars context-sensitive-cursor context-sensitive-cursor — a rule for typewriter scenes where the caret takes its colour and height from whichever segment of the line is being typed. CX Codex +1 ★ 78,316repo stars cursor-click-ripple cursor-click-ripple supplies GSAP timeline specifications for a moving cursor, button press recoil, and expanding ripple waves. CX Codex +1 ★ 78,316repo stars split-tilt-cards The split-tilt-cards rule builds a two-card 3D split layout with opposing tilt. Use it for comparisons, paired features, or before/after scenes. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open