AI video models are brilliant renderers and terrible directors. Ask for "a slow dolly-in past three crates toward a doorway, 35 mm lens" and you get a shot, not your shot. The camera drifts, the props change size between takes, and nothing stays where you put it.
The fix that keeps showing up in 2026 filmmaking workflows is simple: direct the shot in Blender, let the video model paint it. You block out the scene with gray boxes, animate a real camera, render a control video from it, and feed that to a model like Wan 2.1 VACE. The model keeps your geometry and camera move and only decides how things look.
This post gives you the piece most guides skip: a small Blender script that turns any blockout into the two files a video model needs. I ran it on Blender 5.3 before publishing.
The pattern
Depth is the most useful control signal for camera moves. It tells the model where every surface is in space, frame by frame, so a dolly-in stays a dolly-in. Getting it from Blender instead of a depth estimator matters: it is exact, and it does not flicker between frames.
The script
# render_control.py: turn a gray Blender blockout into control files for a video model.
# Usage: blender -b shot.blend -P render_control.py -- ./out
import bpy, os, sys
out = sys.argv[sys.argv.index("--") + 1] if "--" in sys.argv else "./out"
os.makedirs(out, exist_ok=True)
scene = bpy.context.scene
NEAR, FAR = 0.5, 30.0 # metres: the depth range your set actually uses
# Wan 2.1 VACE likes 832x480, 16 fps, 81 frames (5 s). Animate your camera at 16 fps.
scene.render.resolution_x, scene.render.resolution_y = 832, 480
scene.render.resolution_percentage = 100
scene.render.fps = 16
scene.frame_start, scene.frame_end = 1, 81
# Cycles with 1 sample: emission needs no noise-free lighting, and it runs headless anywhere.
scene.render.engine = "CYCLES"
scene.cycles.samples = 1
scene.cycles.use_denoising = False
scene.view_settings.view_transform = "Standard" # keep depth values linear, no film curve
# The sky counts as "far": a black world.
world = scene.world or bpy.data.worlds.new("World")
scene.world = world
world.use_nodes = True
bg = world.node_tree.nodes.get("Background")
bg.inputs["Color"].default_value = (0, 0, 0, 1)
# 1) One material that paints every surface by its distance from the camera.
mat = bpy.data.materials.new("DepthOverride")
mat.use_nodes = True
nt = mat.node_tree
nt.nodes.clear()
cam = nt.nodes.new("ShaderNodeCameraData")
remap = nt.nodes.new("ShaderNodeMapRange")
remap.clamp = True
remap.inputs["From Min"].default_value = NEAR
remap.inputs["From Max"].default_value = FAR
remap.inputs["To Min"].default_value = 1.0 # near = white
remap.inputs["To Max"].default_value = 0.0 # far = black
emit = nt.nodes.new("ShaderNodeEmission")
out_node = nt.nodes.new("ShaderNodeOutputMaterial")
nt.links.new(cam.outputs["View Z Depth"], remap.inputs["Value"])
nt.links.new(remap.outputs["Result"], emit.inputs["Color"])
nt.links.new(emit.outputs["Emission"], out_node.inputs["Surface"])
layer = scene.view_layers[0]
layer.material_override = mat
scene.render.image_settings.file_format = "PNG"
scene.render.image_settings.color_mode = "RGB"
scene.render.filepath = os.path.join(out, "depth_")
bpy.ops.render.render(animation=True)
# 2) Frame 1 with your normal materials: the composition for the image model.
layer.material_override = None
scene.frame_set(scene.frame_start)
scene.cycles.samples = 64
scene.render.filepath = os.path.join(out, "first_frame.png")
bpy.ops.render.render(write_still=True)
print("Done:", out)
Run it, then pack the frames into a video:
blender -b shot.blend -P render_control.py -- ./out
ffmpeg -framerate 16 -i out/depth_%04d.png -c:v libx264 -pix_fmt yuv420p depth.mp4
On a test blockout (a ground plane, four boxes and a 5 metre dolly-in), the 81 depth frames rendered in about 6 seconds on a plain cloud CPU, no GPU. The result is a clean 832x480, 16 fps, 81-frame clip: near boxes white, the floor fading to gray, the sky black.
What each choice is doing
A material override instead of render passes. Blender's compositor API changes between versions. Overriding every material with one emission shader driven by the Camera Data node's View Z Depth works the same across recent versions and renders in one sample.
Near is white. Depth estimators like Depth Anything output near-bright maps, and that is what video models were trained to read. Map Range flips Blender's distance into that convention and clamp keeps far geometry from going negative.
Standard view transform. The default film curve would bend your depth values. You want the raw ramp.
16 fps and 81 frames. Wan 2.1 was trained at 16 fps, and its clips are 81 frames (5 seconds). Animate at 16 fps so timing transfers one to one, then interpolate to 24 fps afterwards if you need it (RIFE does this well).
NEAR and FAR set to your set. If your scene is 8 metres deep and you leave FAR at 30, everything renders bright and the model sees a flat wall. Set the range to the space the camera actually sees.
Feeding it to the video model
In ComfyUI, the core WanVaceToVideo node takes a control_video and an optional reference_image:
- Load
depth.mp4as the control video. Keep width 832, height 480, length 81. - Turn
first_frame.pnginto the look you want with an image model (keep the composition, change the materials and style), and use it as the reference. - Write the prompt for the look only: "a dusty warehouse at golden hour, warm light through high windows". The camera is already decided.
If you want the whole thing scripted, the open source blender-wan-6gb project runs the same idea end to end with Wan 2.1 VACE 1.3B on a 6 GB laptop GPU, using only core ComfyUI nodes, with context windows for clips longer than 5 seconds.
Lessons from using this in production
We run this kind of pipeline in our own studio for animated shorts. A few things we learned the hard way:
- Scale problems disappear. Pure text-to-video gave us a hippo half the size of her bus. A blockout with real measurements fixes size and placement in every shot.
- Expressions get better, fast motion does not. With the layout locked, the model spends its effort on faces and texture. Quick, big body movement still breaks, so keep action simple and shots short.
- You do not need 3D skills to make the blockout. A Blender MCP server lets Claude build the gray set from a description and check its own viewport renders. Keep it on localhost and save first: it can run arbitrary Python inside Blender.
- Depth is the start, not the end. For characters, add a pose or mask pass from the same scene so the model knows who is where.
AI video in 2026 is less about the perfect prompt and more about giving the model structure it cannot invent. Blender is free, scriptable and exact, which makes it the best director's chair a video model can get.
At Axionry, an AI product development studio, we build AI video and creative pipelines like this one, from Blender automation to self-hosted video models, and ship them in weeks. If you want one for your product or brand, book a call.
Sources
- blender-wan-6gb: Blender depth pass to Wan 2.1 VACE 1.3B in ComfyUI
- Flick: How to Use Blender for AI Filmmaking in 2026
- How to Connect Claude to Blender with an MCP Server (November 2026)
- fal.ai Blender extension

Top comments (0)