LineX is a powerful, visual-first IDE for creating Manim animations. It bridges the gap between code-based animation and modern video editing, allowing users to create mathematical animations using a drag-and-drop interface, real-time preview, and AI automation.
-
Drag & Drop: Add shapes (Circles, Squares, Triangles) and Math symbols (
$\pi$ ,$\sum$ ,$\int$ ) directly from the toolkit. - Direct Manipulation: Select objects to Move, Scale, and Rotate visually.
- Mini-Tool: A context-aware floating toolbar appears near your selection for quick style edits (Color, Stroke Width).
- Natural Language to Animation: Type prompts like "Create a rotating red square with text" and watch LineX generate the code and render the video automatically.
- Smart Chat: Authentically styled AI Assistant that helps you write Manim code.
- Robust Pipeline: Automatically cleans and validates AI-generated code to prevent render errors.
- Non-Linear Editing: A Premiere Pro-style timeline with V1 (Video) and A1 (Audio) tracks.
- Clip Management: Drag generated clips to arrange them in time.
- Transitions: Add visual transitions between your animation clips.
- Instant Preview: Renders scenes in the background and plays them immediately on the canvas.
- Quality Control: Switch between Low (480p) for fast previews and High (1080p) for final export.
- Python 3.10+
- FFmpeg (Required for Manim and video playback)
- Windows:
choco install ffmpegor download from ffmpeg.org and add to PATH.
- Windows:
-
Clone the Repository
git clone https://github.com/yourusername/LineX.git cd LineX -
Install Dependencies
pip install -r requirements.txt
Note: If you don't have a requirements file yet, install the core packages:
pip install manim PySide6 google-generativeai python-dotenv
-
Configure API Keys
- Create a
.envfile in the root directory. - Add your Google Gemini API Key:
GEMINI_API_KEY=your_api_key_here
- Create a
-
Run the Application
python -m src.main
-
Workflow
- Option A (Visual): Drag shapes from the left Toolkit onto the canvas. Use the Properties Panel on the right to adjust them.
- Option B (AI): Open the AI Assistant panel, type a request, and hit Enter. LineX will generate the code and show you the result.
LineX/
├── src/
│ ├── core/ # Logic (Manim Runner, AI Worker, Signals)
│ ├── ui/ # Interface (Window, Canvas, Panels, Timeline)
│ └── main.py # Entry Point
├── media/ # Generated Manim videos
├── .env # API Keys (Git-ignored)
└── requirements.txt # Python Dependencies