/varg:code-to-video-previzfrom varg
Prototypes video shots in 3D using Three.js or Blender to lock camera, layout, and scale before generating final video. Solves drifting in AI-generated video by providing a geometric reference.
Ships in varg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Step 6 of 10 in How to make a video with an AI agent in ten steps. The full guide, with every test and source: https://varg.ai/how-to/previz-a-video-in-threejs-or-blender (as Markdown: add
.md).
Video models redraw the world on every call, so cameras wander, counts change and rooms rearrange. A prototype fixes those things for free, before the paid step. The agent can build it, because camera and layout are maths. Three limits decide everything below, so tell the person about them:
Find the one hard thing in the shot, then use the cheapest prototype that pins it down. People who tested previz and say to use it selectively give the same order: words, then images, then references, then previz, each only when the last one fails.
| the hard thing | use | why |
|---|---|---|
| nothing exact: one or two subjects, randomness welcome | no prototype: prompt + start frame | a previz adds cost and can make motion worse |
| the idea and look of a sequence | storyboard stills | fast to redo, and stills are the cheapest place to find problems |
| timing, tempo, positions, crowd paths, side-on shots | 2.5D conte in Remotion or HyperFrames | minutes to make. Not for orbits, occlusion, height or hands |
| an exact camera path, exact counts, spatial continuity, long takes | 3D prototype: section 2 | this is what 3D is for |
| a human performance and a real camera could shoot it | phone act-out | carries weight and timing better than any stand-in |
| a performance and an impossible camera | act-out → mocap → 3D | Motion2MixamoRig, Move.ai or DeepMotion, then Blender |
No same-shot test of act-out against 3D has been published, so say that if asked. Faces are unsolved on every route.
| pick | when | the catch |
|---|---|---|
| Three.js (default) | rough placement and the model fills in the rest; live and editable; no install, weak laptop, a phone; many shots in one diffable file; a code-rendered final | no rigs; agent-written human animation looks stiff |
| Blender | you must lock acting, camera and timing yourself; rigs, Mixamo or mocap, real assets; heavy sets; stills for storyboards; an artist will open the file | more tokens (one report, on a finished render: $20.39 vs $0.97 for the same prompt and model); needs a local install or bpy |
| Cinema 4D (Maxon's MCP) | you already own and know it, and a hero object needs a real rig and motion blur | paid; the GUI stays open; no headless path |
| Unreal + MetaHuman | fast human bodies, big casts, and you work on a Windows GPU | agent + Unreal + Seedance has not been shown joined end to end |
| Gaussian splat world (Marble) | the place itself is the hard part and nothing touches the set | one full report only, from a World Labs employee |
Nobody was found using Unity, Godot, Houdini (except simulation), Rhino or SketchUp for this. Skip them unless you already live there. HyperFrames, After Effects and DaVinci belong after generation, for type and finish.
You don't have to commit. Write the scene as data (staging.json) and both Three.js and Blender render it, with
the same lens maths. Start in Three.js. Move to Blender (--blend scene.blend) when you need a rig or an asset.
For Blender setup, MCP vs headless and what to do by hand: references/blender.md.
| object | for | looks like |
|---|---|---|
| guide clip | a video model, as @video1 | crude and flat-lit, no text, no shadows, stand-ins. Exact seconds |
| storyboard pages | people, or a model as key frames | stills from the shot cameras, 2 to 4 per shot, captions |
| code-rendered film | the audience | textures, light, a pure function of time. No video model |
No video model named? A plain "render it as a clip" means a code-rendered film, so keep the light. One file can't be all three. An animatic with outlines, text and hard shadows has to be rebuilt before it can be a guide clip, because "the reference video is a pixel channel, not a spec channel": whatever is visible can come back in the film.
staging.json, not a new engine. → references/staging-format.mdpython3 scripts/check_staging.py staging.json. Fix every ERROR.references/judging.md. Never a 1 to 10 score, and never "which is better?" with no criteria.Stop rule: 3 rounds without progress on one problem, then change the approach. A round should move a named number or fix a named gap. Matching a painting's colour takes more: sample the colours instead of guessing. Add nothing the beats don't ask for.
Geometry. Build as little as explains the action. Same prompt, two previzes: "barebones won. The more detail you put into the previs, the more literally Seedance follows it." Simplify by event, though: keep the heading, openings, joints that bear on the action, contact surfaces and a signature silhouette. Use real metres and put a 1.75 m person beside anything without a familiar scale. Round head on a capsule is enough for people unless the pose is the point. Ambiguity ruins a pass, crudeness doesn't. A bent lamppost comes back as a snake, and loose blocks near a figure come back as extra people. Mark a vehicle's front. Don't model hero props: get them from Tripo, Meshy or a sketch, or say them in the prompt.
Stand-ins: unsettled. Capsules let the model invent the gait, jointed mannequins hand it a gait to copy, and half-animated limbs are the bad middle ("toy soldiers"). Several creators report stiff results from posed figures. Start with capsules. Use joints only when a specific pose must survive. Run a 4 to 6 s test on your model before a long pass.
Blocking. Block the action once in world time and make every shot a camera on it, so continuity comes free. Replace hard animation with a before pose, an after pose and a cut: "let the cut sell the speed". Keep poses clean: models copy tangled arms literally. For speed, remember that a slow proxy gives sluggish output and a slow move is ambiguous, so write its state in words.
Camera. Only what a real camera could do: "We try not to do anything a real camera couldn't physically do" (Patrick Lin, Pixar). The "magic camera" is the known previs failure, and an 18 mm close-up of a face is what drives Roger Deakins "insane". One move per shot, each with a job: "every shot was a zoom" is the common complaint. Vary the coverage and check it: the audit warns when all moves match.
| want | lens |
|---|---|
| wide interiors, orbits | 24 to 30 mm |
| neutral, walking | 35 mm |
| over the shoulder | 32 to 45 mm (Deakins: 32 or 35) |
| closer shot, medium | 40 to 50 mm (Deakins: "But I have no rule") |
| close-up, compression | 65 to 85 mm |
Choose the lens from what the scene is about, not from what fits the frame. With a wide lens, boom instead of tilting, so verticals stay straight.
Write orbits as arcs ("path": "arc"), because a straight line between two orbit keys goes through the subject. Keep the
180° line in dialogue. Frame one size tighter than you want: generated framing comes back looser. Stiff camera? Don't animate jitter in;
write "handheld" in the prompt, or add noise in Blender.
Light. A guide clip says nothing about light. Keep it flat and put light in the image references and prompt, and tell the model to reject viewport lighting. The exception is a shot whose composition is the light, such as a painted reference: then block one hard source and its shadow edge, and use it for stills and look approval, not for the clip. Work in order: shadow, then separation, then fill (Stephen Burum, ASC). One clear direction, or you get "a mushy light sandwich". Night is more black in the frame, not lower exposure. Write light as numbers: direction, height, ratio (2:1, 4:1, 8:1), Kelvin (candle 1,850, tungsten 3,200, daylight 5,600). Words such as "Rembrandt" and "chiaroscuro" did not read reliably in the one test found, while backlight, silhouette and rim did.
Order. "Block it out first without animation", in static compositions with posed figures, then timing, which "needs to be dead on or pretty close" (fxguide's notes on the previs guide by Chris Edwards of The Third Floor). Pixar's order is "camera, action, lights". Leave lights last.
Determinism. What's on screen is a pure function of t. No clocks, no unseeded random, no state between frames.
Leave out text, subtitles, labels, UI, TV static and glitter: Seedance read a subtitle in a previz and spoke it.
| you have | do | details |
|---|---|---|
| a reference video | decide what you take. Same camera with a new look: feed the clip directly. Change the camera, the count or the set: split it, measure the camera, stage from picture coordinates, compare by overlay and by numbers | references/reference-video.md |
| a painting or a still | read it for light and structure. Use a grid, get lens and eye height from a known size, place everything from picture coordinates, compare by overlay | references/paintings.md |
| nothing | generate a reference image first, because with none the output is generic. Or ask for 3 named camera options as moving stand-ins and pick one | references/no-reference.md |
References fix the look, not the structure. Giving an agent a nice picture won't produce the right meshes, so structure comes from the beats and the numbers.
Three routes, from people who have run them:
@video1. Most common. Keeps camera, positions and cut timing. Also keeps stiffness.Division of labour, reached separately by users writing in three languages: video = camera, path, position, timing. Images = identity and look. Text = what boxes can't show.
What we measured on our own 10-shot run (Seedance 2.5, grey previz, one film, not a controlled test):
uv run scripts/measure_shot.py.Other limits people measured: 10 to 15 s clips hold and 20 to 30 s drift (28 renders, Scenario); 16 s with 7 shots hit 6 of 6 cuts within 0.07 s, and a 28 s piece lost 3 and added 4 (VLM harness). Keep runs short and in one location. Kling 4 tended to ignore the previz in the one test found. Contact, fast action and identity in fights stay weak everywhere.
Grey or colour: unsettled. Grey: a colour previz once came back as the output, unchanged, and several people report
that grey adheres cleanly. Colour: Scenario reports an all-grey clip losing identity and a bare grey mannequin being refused
by a provider, and users map saturated colours to @image refs with success. Nobody has published a controlled test. Default:
greyscale with characters separated by brightness. Use identity colours with a written legend when characters must stay
apart. Test both on one short window before a long pass, because results vary by model.
The prompt: references/handoff.md. Copy-paste prompts for every step: references/prompts.md. For the full animation pass after this (model per shot, takes, sync, plates), use video-animate.
estimate_cost, get a yes, run one test first, report the billed cost.references/reference-video.md.| path | what |
|---|---|
references/staging-format.md | the scene file and every command |
references/blender.md | setup, MCP or headless, Workbench, what to do by hand |
references/reference-video.md | Case A: copy a reference video |
references/paintings.md | Case B: stage from a painting or still |
references/no-reference.md | Case C: no reference at all |
references/handoff.md | prompts and rules for Seedance and other models |
references/prompts.md | paste-ready prompts |
references/judging.md | rank takes with an LLM judge: what we measured, the biases, gate and pair prompts, what a judge can't see |
references/sources.md | who said what, with links |
scripts/check_staging.py | number audit, standard library only |
scripts/stage_three.ts, stage_three.html, cdp.ts | three.js renderer (Bun, Chrome, ffmpeg) |
scripts/stage_blender.py | Blender renderer (bpy) |
scripts/shots.py, grid.py, compare.py | split a video, read a picture, compare a render (ffmpeg) |
scripts/measure_shot.py | read a shot's move as a picture: pan, tilt, zoom, roll (uv, OpenCV) |
scripts/solve_camera.py, solved_to_staging.py | recover a shot's real 3D camera with Blender's tracker, then turn it into a camera path |
scripts/place.py | picture coordinates to world coordinates |
scripts/judge_pack.py | a blind judging round: random names, both orders, a copy that must tie, scoring |
example/calling/ | Caravaggio's The Calling of Saint Matthew, staged from the picture |
example/ab-test/ | one 5 s shot as 4 variants (grey or colour, capsule or joints), to settle the open questions on your model |
threejs-animatic and varg-previz (a full three.js film with a review UI and pack builder), video-animate (animate from an approved previz, model per shot), varg-video-prompting
(prompting a shot), video-moodboard and find-references (look and references), varg-consistent-characters (identity),
varg-ai (generation), hyperframes (type and finish on top of the video).
README.md (opens in a new tab)example/ab-test/make_variants.py (opens in a new tab)example/calling/make_staging.py (opens in a new tab)example/calling/staging.json (opens in a new tab)references/blender.md (opens in a new tab)references/handoff.md (opens in a new tab)references/judging.md (opens in a new tab)references/no-reference.md (opens in a new tab)references/paintings.md (opens in a new tab)references/prompts.md (opens in a new tab)references/reference-video.md (opens in a new tab)references/sources.md (opens in a new tab)references/staging-format.md (opens in a new tab)scripts/cdp.ts (opens in a new tab)scripts/check_staging.py (opens in a new tab)scripts/compare.py (opens in a new tab)scripts/grid.py (opens in a new tab)scripts/judge_pack.py (opens in a new tab)scripts/measure_shot.py (opens in a new tab)scripts/place.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
83 skills in this plugin
/ad-creative-testingTurn one winning ad into a creative testing plan for TikTok and Meta. Decodes why an ad won (hook, argument, buyer, format), plans concepts that Meta's Andromeda and TikTok treat as genuinely different (buyer × angle × format × first frame, not caption swaps), sets how many creatives to launch, the budget per test and when to judge, writes file and ad names that make results readable, reads hook rate, hold rate, CTR and CPA to find which part failed, and says when to kill, iterate or scale. Use when someone asks how many ads to test, how to make ad variants, why their variants all perform the same, whether an ad is fatigued, when to kill an ad, or how to scale a winner. NOT for producing the videos (use ecommerce-video-ads, ecommerce-video-edit or product-video-hooks) or for media-buying account setup./ai-ad-compliance-checkTurns an AI video ad into a compliance report for TikTok Shop, TikTok ads, Meta, YouTube, the FTC, New York's synthetic-performer law and the EU AI Act before it runs: varg video_analyze pulls every shot, spoken and on-screen claim and person, each claim is matched to the seller's evidence, the visuals are checked against TikTok Shop's AI product rules (no fake effects, before/after, changed quantity or size), people and voices against the FTC fake-testimonial rule, and the result is a pass / fix / block list with the rule, source and date, a rewrite for each fix, and the AI labels to set on each platform. Use when someone asks "is this ad allowed", "will TikTok Shop reject this", "check my AI ad for compliance", "do I need an AI label", "can an AI avatar say it used the product", or before publishing AI product ads, UGC or testimonials. Not legal advice, and not for writing the ad (use ecommerce-video-ads or tiktok-shop-video)./ai-parody-videoPlan and make a short AI parody video: a known movie scene, TV format or news shot with one wrong element, 10 to 45 seconds, built to be shared. Gives the joke structure, six formats measured on clips with 60 thousand to 9 million views (scene recast with new dialogue, original-vs-remake, one-prompt sitcom sketch, fake live news shot, character monologue, silent slapstick), which production route each one takes, prompt templates for the sketch and the news shot, subtitle and caption rules, and a plain list of what is allowed with real people, known characters, studio footage and cloned voices, with platform AI labels. Use when someone asks for a parody, spoof, meme video, movie mashup, crossover, "X in the world of Y", a celebrity or politician comedy clip, a fake trailer, or wants videos like the viral AI parodies on X, TikTok or Shorts. Then use scene-recast-video for remakes of an existing clip and multi-angle-monologue for speeches./ai-ugc-ad-videoOpen-source alternative to Arcads: AI UGC ads with an AI actor holding your real product. Casts a creator whose age matches the claim in the room where the problem happens, writes a phone-real script (a yapper, unboxing, street interview or in-car take) with every line in the prompt, locks the face, the voice and the product label across shots, prompts camera flaws and breaths so it doesn't look waxy, generates on Seedance 2.5, Kling 4 or Creatify through varg, and labels it. It never puts a first-person testimonial or result in an AI mouth (FTC rule) and never targets TikTok Shop presenters (AI voices banned there). Use when someone wants AI UGC ads, an AI creator or actor talking about their product, Arcads/Creatify/MakeUGC-style ads, or UGC without hiring creators. NOT for TikTok Shop affiliate videos (use tiktok-shop-video), product-only shots with no person (use product-photo-to-video), or the same characters across a multi-scene story (use varg-consistent-characters)./app-ui-mockupsTen animated UI mockups for product, launch and dev-tool videos, rebuilt as HTML instead of screen recordings: phone message thread, team chat channel, coding-agent terminal session, terminal command run, desktop terminal window, desktop notification banner, code editor walkthrough, 3D code slab, exploded UI panels and an amber CRT console. Presets give typing speed (12-20 characters per second with seeded gaps), reading holds from character count, entrance easing and scale, camera lead before each action, text size as a share of frame height, and theme colors from MIT theme sources, from Charm VHS, Screen Studio, Emil Kowalski, Apple HIG and Netflix timing rules. Use when someone wants a fake text or Slack conversation, a terminal or Claude Code demo, a code walkthrough or an exploded UI shot in a video. NOT for recording a real screen or for real people's messages presented as genuine./blender-code-filmMake a short 3D film in Blender written entirely in Python by an agent (Claude Fable 5.2, Claude Code, Codex): the shots and the look as data, a world built from code (procedural terrain, hundreds of instanced props, node materials, lights, haze), one camera per shot bound to timeline markers, a stills-first approval pass, a quarter-size draft, a contact-sheet audit, a fresh critic subagent, then the final render to PNG frames and an ffmpeg encode with an optional varg music bed. Includes a tested starter (scripts/film.py, a 9 s three-shot film) and the Blender 5.x traps that turn frames black. Use when someone asks for a Blender animation or film made with code or Python, "make a video in Blender with Claude", a 3D short, music video, toy commercial or product film rendered in Blender, a low-poly or storybook 3D film, or a remake of a viral Fable 5.2 Blender video. Not for previz that feeds Seedance (code-to-video-previz, varg-previz), three.js films in the browser (karpathy-3d-story, code-3d-explainer), recording a browser game (code-game-trailer), 2D motion graphics (hyperframes, kinetic-type-art) or AI-generated footage (varg-ai).Other plugins' skills for the same job