"Direct the Shot, Not the Prompt."
The Open-Source 3D Previsualization, Motion Capture & Camera Blocking Studio for AI Filmmaking in ComfyUI
π‘ Why This Studio? β’ π¬ Demo Video β’ β¨ 13 Key Features β’ π¦ 7 ComfyUI Workflows β’ πΈ Screenshots β’ π Quick Start
Directing AI video by typing text prompts alone is like directing a movie blindfolded. Creators routinely spend hours of waiting and burn hundreds of GPU hours or paid API credits re-rolling the same prompt 30 times just to get:
- A camera to orbit smoothly around a subject instead of drifting away.
- Two characters to walk past each other without merging or teleporting.
- An actor to enter the frame at the exact 2-second mark, stop, and perform a specific action.
ComfyUI Motion Previs Studio lets you build, direct, and preview your entire shot in a real-time 3D stage at 60 FPS β costing $0 in credits and 0 seconds of rendering wait time.
- Stage Your Scene in Seconds: Pick from 200+ built-in 3D characters, props, and environments, generate new 3D
.GLBmodels from an image or text prompt, or extract real 3D human motion & camera movement directly from any video. - Direct Timing & Camera Like a Filmmaker: Apply ready-made animations (
Walk,Run,Fight,Sit,Crawl), drag cues on a 24fps timeline, and frame your shot through real cinema lenses (14mmto135mm). - Render Once with 100% Confidence: When your 3D preview looks right, click Render in ComfyUI. The studio automatically exports the exact control pass (
Clay,RGB,Depth, orOpenPose), binds your reference images, compiles a camera-accurate prompt, and renders the final AI video on the very first try.
π§ Tech Under the Hood: Built with React 19, TypeScript, Three.js WebGL2, Zustand, Zod-validated
ShotSpecschemas,mp4-muxerhardware-accelerated encoding, and a direct WebSocket/REST bridge to local ComfyUI.
π¬ Watch Full 1080p Studio Demo Video (.MP4 Stream with Audio)
flowchart LR
subgraph Input["1. Build or Capture 3D Scene"]
A1["ποΈ 200+ 3D Asset Library\n& Ready-Made Motion Clips"]
A2["πΊ 3D Video Mocap Studio\n(Real SMPL 6,890v or Mixamo Y-Bot)"]
A3["π§ ComfyUI Image/Text-to-3D\n(.GLB + Auto Bone Rigging)"]
end
subgraph Stage["2. Direct on the 3D Stage (0 Credits)"]
B1["π₯ Dual 3D Viewports\n& Cinema Lenses (14mmβ135mm)"]
B2["ποΈ 24fps Cue Swimlanes\nSpeed Stretch & +Chain"]
B3["π€Έ Bilingual Text-to-Motion\n6-Effector IK Synthesizer"]
end
subgraph Export["3. Smart Multi-Pass & Prompt Engine"]
C1["π¨ 4-Channel 24fps MP4\n(Clay / RGB / Depth / OpenPose)"]
C2["ποΈ Camera-POV Frustum\nVisibility Prompt Compiler"]
C3["π§ Workflow Output Registry\n& Channel Auto-Advisor"]
end
subgraph Render["4. Final ComfyUI Generation"]
D1["β‘ LTX-2 19B IC-LoRA Union\n& LTX-2.5 22B"]
D2["π¬ MiniMax H3 Ref2VA\n& Stubelius Ultimate"]
D3["π₯οΈ Side-by-Side Sync Player\n(3D Previs vs Final Render)"]
end
Input --> Stage --> Export --> Render
How it helps you: Turn any 2D concept picture or text idea into a textured, posable, animated 3D .GLB character or prop right inside the appβpowered by your local ComfyUI server.
- πΌοΈ Image-to-3D Mode: Upload any PNG/JPG/WebP character or object image. ComfyUI removes the background, estimates 3D depth, reconstructs a textured
.GLBmesh, and links your image as<picture 1>for final video rendering. - βοΈ Text-to-3D Mode: Type a description of any character, creature, or prop. ComfyUI first generates a clean studio concept image and immediately converts it into a 3D
.GLBmodel. - 𦴠Instant Automatic Bone Rigging (
4 Archetypes): Every generated or uploaded.GLBis automatically rigged at 60 FPS as aπ§ Humanoid (19-Bone),πΎ Quadruped (4-Leg Animal),π Flexible Spine, orπ¦ Rigid Prop, complete with an interactive Joint Landmark Fine-Tuner and X-ray bone preview.
π§ Tech Under the Hood: ComfyUI workflows
#aa77013b&#e7a9555b(Pixal3D INT8,TRELLIS.2 INT8,Hunyuan3D-2.1 PBR,Z-Image Turbo FP8,Qwen-3-4B,BiRefNet,MoGe Depth) + silhouette-awareSkinnedMeshauto-rigger (autoRigEngine.ts).
How it helps you: Have a real-life video clip with great acting or camera movement? Upload any RGB video (up to 30 seconds) and convert the people, camera motion, and surrounding buildings into an editable 3D scene on your stage.
- Multi-Person 3D Motion Capture (
1..NActors): Automatically detects and tracks multiple people moving in 3D depth spaceβeven when they cross paths. - User Choice of 3D Character Mesh:
- 𧬠Real SMPL Body (
6,890 Vertices): Reconstructs realistic 3D human body meshes shaped to match each person's real-world height, shoulder breadth, chest/waist/hip proportions, and body build (slim,average,athletic,stocky,heavy) from the video. - π€ Mixamo Y-Bot (
1:1 Natural): Retargets the extracted 3D motion onto the classic Mixamo Y-Bot mannequin while keeping its clean, natural 1:1 proportions with zero stretching or distortion.
- 𧬠Real SMPL Body (
- 3D Camera Tracking & Scene Reconstruction: Extracts the video's camera focal length (
mm) and 6-DoF movement (pan,tilt,dolly,truck) plus nearby 3D architectural blocks.
π§ Tech Under the Hood: Local GPU
NLF-Large(nlf_l_multi_0.3.2.torchscript) 3D SMPL-24 extractor (scripts/mocap_nlf_extractor.py), auto-generated 6,890-vertex / 13,776-face PCA shape blendshape skinning engine (smplMannequinLoader.ts), MediaPipe 33-landmark 3D fallback, and 6-DoF Camera Odometry.
How it helps you: Dial in custom poses by hand or put a sword, lantern, or camera prop directly into a character's hand so they carry it naturally while walking or fighting.
- Direct 3D Bone Manipulation (
Pose Bones): Click any joint on a character (Shoulder,Elbow,Wrist,Hip,Knee,Head,Spine) and rotate it directly in the 3D viewport. - 1-Click Bone Socketing: Attach any 3D prop in your scene to a character's
Right Hand,Left Hand,Head, orChest/Spineβthe prop automatically follows the character's hand or body through every animation frame.
π§ Tech Under the Hood: Interactive Three.js
TransformControlsjoint rotation overrides and real-time skeletal world-matrix bone socket parenting.
How it helps you: You never have to start from an empty screen or hunt for 3D models online. Open the library and populate a complete movie scene in seconds.
- 200+ Curated 3D Models: Browse ready-to-use characters, articulated mannequins, cars, motorcycles, creatures, trees, buildings, furniture, weapons, and stage props organized by category.
- Personal
β My Uploads & AIVault: Import your own.GLBor.FBXfiles from disk or save models generated by ComfyUIβautomatically stored in your browser and synced with your localComfyUI/output/3d/folder. - 1-Click Stage Spawn: Drop any character or prop onto the 3D floor, swap models at any time, and attach a
<picture>reference photo for AI video styling.
π§ Tech Under the Hood: Three.js
GLTFLoader&FBXLoader, persistent IndexedDBmodelStoragevault, and automatic local filesystem discovery (D:\ComfyUI\output\3d\).
How it helps you: Animate characters like a pro with zero 3D animation experience. Pick a movement from a visual menu and watch your character perform it immediately with realistic human weight and balance.
- 3 Organized Motion Categories:
- Move / Jump:
Walk Forward,Run / Sprint,Jump / Leap,Sneak / Stealth,Back Up / Retreat,Crawl (Prone),Climb / Scale. - Fight / Action:
Sword Slash,Dodge / Roll,Martial Combo,Aim & Fire,Push / Shove,Fall / Collapse. - Act / Emote:
Wave / Greet,Talk / Dialogue,Sit Down,Stand Up / Rise,Kneel / Bow,Heroic Taunt,Victory Cheer,Look Around.
- Move / Jump:
- Smart Floor Travel vs. In-Place (
Auto / Move / Spot): Let walking/running characters automatically travel along their floor path, or lock them in one spot. - Action Cycles (
1xβ5x) & Body Facing: Choose exactly how many times a gesture repeats across the shot so movements never loop robotically, and set facing angles (Face Cam,3/4 Left,Profile,OTS Back).
π§ Tech Under the Hood: Biomechanical Gait Engine (
gaitEngine.ts) featuring asymmetric stance/swing timing (60/40walk,38/62run), heel-strike to toe-off foot roll (createFootRollController), contrapposto pelvic sway, spine counter-torsion, andsolveLookAthorizon head stabilization.
How it helps you: Need a custom action that isn't in the preset buttons? Type any movement in plain English or Arabicβincluding multi-step instructionsβand watch the character act it out on the 3D stage.
- Natural Multi-Step Choreography: Type phrases like "crawl on the ground then stand up", "walk right then sit down", or "Ψ±Ψ¬Ω ΩΨ²ΨΩ ΨΉΩΩ Ψ§ΩΨ£Ψ±ΨΆ Ψ«Ω ΩΩΩΩ " and click Direct.
- Full-Body Coordination: The engine coordinates all 6 body zones (hips, spine, both hands, both feet, and head gaze) simultaneously so characters bend, reach, kneel, or climb naturally.
- Works Offline or with Local/Cloud LLMs: Runs instantly out-of-the-box using our built-in kinematic parser, and can optionally connect to local Ollama (
deepseek-r1,qwen2.5,llama3.3), Google Gemini, or OpenAI for open-ended choreography.
π§ Tech Under the Hood: Analytical 2-Bone Inverse Kinematics solver (
ikSolver.ts) + Universal 6-Effector IK Motion Synthesizer (universalMotionSynthesizer.ts) + bilingual LLM kinematic program generator (aiActingDirector.ts).
How it helps you: Control when every action happens and how fast it plays using simple drag-and-drop barsβjust like editing clips in a video editor.
- Color-Coded Character & Camera Swimlanes: Every actor on stage gets their own timeline track with distinct icons for movement (
β), acting (β), and jumping (β±), alongside a dedicated[CAM]camera track. - Drag-and-Drop Retiming & Speed Stretch Handles: Drag a cue left or right to change its start time, or grab the edges of a cue bar to stretch/compress the action speed.
- 1-Click Pacing Curves: Change the energy of any movement with
Linear,Smooth,Burst β‘(explosive start), orRamp β(gradual build-up). + ChainSequential Actions: Click+ Chainto add a second or third action right where the previous one finished (e.g., walk to center β kneel down β look around) without resetting the character.
π§ Tech Under the Hood: Deterministic 24fps multi-subject keyframe evaluator (
trajectoryMath.ts), non-linear time-warping easing curves, and stateful pose/position handoff chaining.
How it helps you: See both the "behind-the-scenes" set and the exact camera shot at the same time, so you never have to guess how lens focal length or camera angles will look.
- Left Viewport (
3D Soundstage): Free-orbit director's view showing the whole room, lighting cones, camera rig, and floor paths. - Right Viewport (
Camera Viewfinder): Locked to your exact output aspect ratio (16:9,2.39:1 Anamorphic,9:16 Vertical,1:1), lens focal length (14mmUltra-Wide to135mmTelephoto Close-Up), aperture (f/1.4βf/22), and Dutch roll (-45Β°to+45Β°). - Dynamic Camera Moves & 2D Top-View Radar: Choose
Static,Dolly In,Pull Back,Track L/R,Orbit CW/CCW,Spiral Orbit,Crane Arc,FPV Dive,Steadicam Follow, orWhip Panand preview the curved path live on the 2D radar map.
π§ Tech Under the Hood: Synchronized dual-pass Three.js WebGL2 rendering, real sensor/focal-length FoV math, and
evaluateLiveCameraStageStateorbital/pan trajectory evaluation.
How it helps you: Place your characters inside a rich 3D architectural set and light them cinematically in seconds without building environments from scratch.
- Ready-Made 3D Soundstages: Switch instantly between
Cyberpunk Alleyway,Ancient Temple Ruins,Warm Candlelit Rooftop Terrace,Sci-Fi Corridor, andFilm Studio Cyc Wall, or upload a<picture 4>background reference image. - Interactive 3D Lighting Rig: Position and aim
Key,Fill,Rim, andPractical3D light gizmos with live controls for brightness, color warmth, cone angle, atmospheric fog, and real-time shadows.
π§ Tech Under the Hood: Procedural PBR environment generator (
environmentBuilder.ts), shadow-mappedSpotLight/DirectionalLightrigs, and volumetric fog shaders.
How it helps you: Different ComfyUI video workflows work best with different types of guide videos. The studio renders all 4 industry-standard control passes and automatically picks the right one for your chosen workflow.
- 4 Real-Time & Offline 24fps Render Channels:
- πΏ Clay (Neutral Grey Previs): Renders characters and buildings in clean studio clay so LTX-2 IC-LoRA captures pure 3D motion and lighting while taking 100% of its colors from your prompt and
<picture 1>reference (with zero grey color bleed). - π¨ RGB (Color-Coded Motion): Distinct limb and subject color encoding for motion-transfer workflows.
- π«οΈ Depth (Normalized Z-Buffer): Smooth near-to-far depth maps for 3D structure conditioning.
- 𦴠OpenPose (18-Joint Skeleton): High-contrast skeletal pose pass on pure black for ControlNet Pose.
- πΏ Clay (Neutral Grey Previs): Renders characters and buildings in clean studio clay so LTX-2 IC-LoRA captures pure 3D motion and lighting while taking 100% of its colors from your prompt and
- Smart Workflow Advisor & Auto-Switch: Automatically knows the output node (
SaveVideo,VHS_VideoCombine,SaveGLB,Hy3DExportMesh) and ideal render channel for every bundled or custom workflow, offering 1-clickSwitch to Recommendedand automatic channel switching.
π§ Tech Under the Hood: Hardware-accelerated
mp4-muxeroffline renderer (offlinePrevisRenderer.ts), deterministicworkflowOutputRegistry.tsgraph inspector, and adaptiveLTXVAddGuideIC-LoRA control strength calibration (0.65in Clay mode).
How it helps you: Most prompt tools describe everything on the stageβeven objects hidden behind the camera, which confuses AI video models. Our studio checks the actual Camera Viewfinder and only describes what the camera truly sees.
- Exact Entry & Exit Timestamps: Automatically detects when each character or prop enters or leaves the camera frame (e.g., "Lead Actor enters frame at 1.2s and exits at 2.8s") and leaves off-screen objects out of the prompt completely.
- Tailored for Each Video Model: Formats prompts specifically for LTX-2 / LTX-2.5 (flowing cinematic T5 paragraph), MiniMax H3 Ref2VA (
<Video 1>+<picture 1>β<picture 4>subject definitions), and Seedance 2.0 (@Video1+@Image1multimodal tags).
π§ Tech Under the Hood: 25-sample 3D
PerspectiveCamerafrustum bounding-sphere visibility engine (povVisibilityEngine.ts) and multi-engine adapter compilers (ltxAdapter.ts,minimaxAdapter.ts,seedanceAdapter.ts).
How it helps you: Send your 3D preview and reference photos straight to ComfyUI with a single button click, watch live progress, and compare your 3D blocking against the final AI video side-by-side.
- Zero Manual File Shuffling: Automatically uploads your rendered 24fps Previs MP4 and up to 4 Reference Images (
<picture 1>β<picture 4>) directly into the right ComfyUI nodes. - In-App
Side-by-Side SyncPlayer: Play your 3D Previs MP4 and the Final ComfyUI Render locked together frame-by-frame to verify motion accuracy, or compare shot revisions in Director Diff.
π§ Tech Under the Hood: Schema-verified ComfyUI API graph binder (
templateLoader.ts), live WebSocket + HTTP/historyexecution tracker, and zero-CORS loopback proxy (127.0.0.1:51731).
How it helps you: Plan a single shot or a full multi-scene short film, learn the studio in minutes with pre-built interactive scenes, and keep all your generated files organized on your own hard drive.
- Shot Bible & Built-In Learning Scenes: Switch between scenes and shots, duplicate setups, maintain character continuity across cuts, or load built-in demo scenes with one click.
- Dedicated
studio_storage/Disk Folder: Every generated.GLBasset, ComfyUI video render, Previs MP4 export, and custom workflow is neatly saved to your local disk (studio_storage/or any custom folder you choose inβ Settings).
π§ Tech Under the Hood: Zustand stores (
useShotStore,useHistoryStore,useComfyStore,useAssetLibraryStore) with undo/redo history and local disk storage middleware.
All 7 production-tested ComfyUI workflows powering this studio are included inside workflows/templates/. Click π₯ Workflows Pack inside the app header to download any workflow (both drag-and-drop ComfyUI UI .json and API .api.json) or Download All Workflows in one click:
| # | Workflow Name | Category | Recommended Previs Channel | ComfyUI UI Workflow (Drag & Drop) | API Execution Graph | Core Models Used |
|---|---|---|---|---|---|---|
| 1 | β‘ LTX-2 19B IC-LoRA Union Control (v4.2) |
Video VFX | πΏ Clay (Auto-tuned 0.65) |
ComfyUI_LTX2_ICLoRA_Union_Control_Workflow.json |
ltx2_iclora_union_control.api.json |
LTX-2 19B Distilled FP8, Union IC-LoRA, Gemma-3 12B, LTXV Audio VAE |
| 2 | π¬ MiniMax H3 Multi-Subject Ref2VA | Video + Audio | π¨ RGB |
MiniMax_H3_Ref2VA_ComfyUI_Workflow.json |
minimax_h3_ref2va.api.json |
MiniMax H3 Ref2VA INT8, SolAttn, 8-Step Turbo LoRA, RIFE 60fps |
| 3 | π₯ MiniMax H3 Stubelius Ultimate Director | Video + Audio | π¨ RGB |
Stubelius_Ultimate_H3.json |
h3_stubelius.api.json |
MiniMax H3 Ref2VA & FL2VA, Qwen3-VL 32B, Video + Audio VAE |
| 4 | ποΈ LTX-2.5 22B Distilled INT8 VFX | Video VFX | π¨ RGB / π«οΈ Depth |
β | ltx25_stubelius.api.json |
LTX-2.5 22B Distilled INT8, T5-XXL FP8 |
| 5 | πΌοΈ Image-to-3D .GLB Reconstruction |
3D .GLB |
β | ComfyUI_Image_to_3D_GLB_Workflow.json |
comfy_image_to_3d_glb.api.json |
Pixal3D INT8, TRELLIS.2 INT8, BiRefNet, MoGe v1, DINOv3 |
| 6 | βοΈ Text-to-3D .GLB Studio Generator |
3D .GLB |
β | ComfyUI_Text_to_3D_GLB_Workflow.json |
comfy_text_to_3d_glb.api.json |
Z-Image Turbo FP8, Qwen-3-4B, Flux VAE, BiRefNet, Pixal3D / TRELLIS.2 |
| 7 | π‘οΈ Hunyuan3D-2.1 Normal & PBR .GLB |
3D .GLB |
β | ComfyUI_Hunyuan3D_21_GLB_Workflow.json |
comfy_hunyuan3d_21_glb.api.json |
Hunyuan3D-DiT-v2-1 FP16, Hy3D Paint PBR Multi-View, BiRefNet |
- OS: Windows 10 / 11, macOS, or Linux
- Node.js:
v20.xorv22.xLTS (includesnpm) - (Optional) ComfyUI running locally at
http://127.0.0.1:8188for live 3D.GLBgeneration, NLF 3D SMPL video mocap, and live video rendering. (The 3D Previs Stage, 200+ Asset Library, Motion Clips, and 24fps MP4/ControlNet Exporters work 100% locally in your browser/desktop app even when ComfyUI is offline!)
git clone https://github.com/navarisun1982/comfyui-motion-previs-studio.git
cd comfyui-motion-previs-studioOn Windows, simply double-click start_studio.bat (for Browser Mode) or run.bat (for the Native Electron Desktop App):
- Automatically runs
npm installon first launch if needed. - Applies our branded 3D studio icon (
Assets/logo.ico) and creates a desktop shortcut. - Starts the studio server and opens
http://127.0.0.1:5173(or launches the native desktop window).
# Install dependencies
npm install
# Run in Browser Mode (http://localhost:5173)
npm run dev
# Or launch as a Native Desktop App (Electron)
npm run desktopOpen β Settings in the top header bar to connect optional local or cloud LLMs for natural-language choreography and prompt polishing:
| Provider Mode | Supported Models | What It Unlocks |
|---|---|---|
Local (Ollama / Local Endpoint) |
deepseek-r1, qwen2.5, llama3.3 (http://localhost:11434) |
100% free, local & private bilingual character choreography and prompt directing. |
| Google Gemini | gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash |
High-speed spatial stage blocking and engine-specific video prompt compilation. |
| OpenAI | gpt-4o, gpt-4o-mini, gpt-4.1, o3-mini |
Natural-language acting direction and cinematic prompt refinement. |
Run the full 468-test Vitest suite and production TypeScript + Vite build:
# Run all 56 test suites (468 unit & integration tests)
npm test
# Run full TypeScript check + production bundle build
npm run buildβββ docs/
β βββ demo/ # Full 1080p studio demo video & animated preview
β βββ screenshots/ # Visual feature tour screenshots
β βββ ARCHITECTURE.md # System architecture & data flow
βββ public/
β βββ images/ # Studio UI icons & hero thumbnails
β βββ models/ # Rigged 3D humanoid & creature meshes (.glb / .fbx)
βββ scripts/
β βββ mocap_nlf_extractor.py# Local GPU NLF-Large 3D SMPL-24 multi-person extractor
βββ src/
β βββ adapters/ # Engine prompt & config adapters (LTX-2/2.5, MiniMax H3, Seedance)
β βββ components/ # 2026 Cinematic Command Center UI
β β βββ MocapStudioModal.tsx # 3D Video Mocap Studio (Real SMPL 6,890v vs Mixamo Y-Bot)
β β βββ AIGenerator3D.tsx # ComfyUI Image-to-3D & Text-to-3D .GLB Studio + Auto-Rigger
β β βββ BundledWorkflowsModal.tsx # 1-Click downloader for all 7 bundled ComfyUI workflows
β β βββ AssetLibraryModal.tsx # 200+ Curated 3D Assets + Custom .GLB Vault
β β βββ StagePrevis3D.tsx # Dual-viewport Three.js soundstage & camera viewfinder
β β βββ MotionPrevisStage.tsx # 24fps transport bar, Cue swimlanes & speed stretching
β β βββ CharacterControlCard.tsx # Motion clips, Bilingual IK Director & Cue Ribbon
β β βββ PrevisExportDeck.tsx # 4-Channel MP4 exporter, Workflow Advisor & ComfyUI Bridge
β β βββ ShotBible.tsx # Multi-scene storyboard manager & built-in learning demos
β β βββ DirectorDiffModal.tsx # Side-by-side shot revision & video diff inspector
β βββ engine/
β β βββ kinematics/ # SMPL 6,890v loader, Mixamo loader, Auto-Rigger, Gait & 6-Effector IK
β β βββ staging/ # Procedural 3D environments & subject mesh factory
β β βββ vfx/ # Video mocap analyzer, 6-DoF camera tracker & scene reconstructor
β β βββ workflowOutputRegistry.ts # Deterministic ComfyUI output node & channel advisor registry
β β βββ povVisibilityEngine.ts # 3D Camera-POV frustum visibility & timestamp analyzer
β β βββ promptCompiler.ts # Official model-specific prompt compilers
β β βββ offlinePrevisRenderer.ts # Hardware-accelerated 4-channel 24fps MP4 renderer
β βββ services/ # ComfyUI REST/WS client, 3D generator, storage & LLM directors
β βββ stores/ # Zustand stores (useShotStore, useHistoryStore, useComfyStore)
β βββ types/ # Canonical Zod-validated ShotSpec schemas
βββ workflows/
βββ templates/ # 7 Bundled ComfyUI UI (.json) & API (.api.json) workflows + bindings
Released under the MIT License.











