3D & animation · The What2Prompt engine

Blender AI prompts: Python scripts & animation with AI

Blender AI can help you plan a scene and draft Python scripts, but Blender still executes the code and renders the animation. Use these prompts to describe a small bpy task, specify your installed version and protect existing work. Check objects, keyframes and camera framing before a final render.

See all prompt guides →
2Which AI will you paste it into?
Short and punchy.
1 credit per prompt

Works with ChatGPT, Claude, Gemini, Midjourney, Suno and more.

Copy · Paste · Done
STEP 3 · YOUR PROMPT
Prompt for Claude CodeQuickExample

Role

You are a Blender Python developer using bpy.

Context

Work in the stated Blender version and preserve the current scene.

Task

Target Blender 4.5 and state any version-dependent assumptions.
Create a new collection named BounceDemo without deleting existing objects.
Add a cube, floor, camera and area light.
Animate the cube vertically through a five-second clip at 24 fps with readable bounce keyframes and no floor penetration.
Set frame range and camera explicitly.
Provide a complete script, Text Editor run instructions and a timeline-preview checklist.

Format

Give the scene plan, script, frame timings and timeline-preview checks.

Guardrails

Do not start rendering automatically or save over my current file.
5 free prompts

Example prompts

Example

Animate a bouncing cube

Role

You are a Blender Python developer using bpy.

Context

Work in the stated Blender version and preserve the current scene.

Task

Target Blender 4.5 and state any version-dependent assumptions.
Create a new collection named BounceDemo without deleting existing objects.
Add a cube, floor, camera and area light.
Animate the cube vertically through a five-second clip at 24 fps with readable bounce keyframes and no floor penetration.
Set frame range and camera explicitly.
Provide a complete script, Text Editor run instructions and a timeline-preview checklist.

Format

Give the scene plan, script, frame timings and timeline-preview checks.

Guardrails

Do not start rendering automatically or save over my current file.
Example

Make a product turntable

Role

Blender Python developer using bpy.

Context

Work in the stated Blender version and preserve the current scene.

Task

Write a bpy script for Blender 4.5 that animates my selected mesh rotating once over 120 frames at 24 fps.
Validate that one mesh is selected and give a clear message otherwise.
Preserve its original location, scale, materials and collection.
Explain the chosen rotation pivot and use linear interpolation for constant speed.
Add a camera and lighting only in a new named collection.

Format

Include a check for frames 1, 60 and 120 and explain how to avoid a duplicate endpoint in a looping export.

Guardrails

Do not delete scene content.
Example

Create a short procedural reveal

Role

Blender Python developer using bpy.

Context

Work in the stated Blender version and preserve the current scene.

Task

Plan and write a Blender 4.5 bpy script for a six-second animation of five simple blocks rising in sequence to form a miniature skyline.
Use named objects, staggered location keyframes, a fixed camera, one floor and two lights.

Format

Output a scene plan before code, with frame timings at 24 fps and the intended final composition.
Explain how to preview the action and adjust spacing and timing.

Guardrails

Keep all generated content in a separate collection, preserve existing scene data and never render or overwrite files automatically.

What Blender AI can help with — and what still needs testing

Blender AI is an umbrella description, not a single built-in capability you should assume every installation has. A coding assistant can explain bpy, draft a procedural scene or investigate a traceback when you provide the relevant material. Blender executes the script inside its own environment. State the application version, selected objects and permitted changes so the assistant does not invent an add-on or rely on APIs from a different release.

For animation, translate seconds into an explicit frame plan. A five-second clip at 24 frames per second needs a 120-frame timeline convention, with named checkpoints to inspect. Describe whether the object moves, rotates or changes scale, and separately state what the camera does. Ask for the interpolation choice to be explained. A script can run without errors while the action is poorly framed or the object intersects the floor.

Keep generated objects in a new named collection and forbid clearing the scene. For a product turntable, supply the actual selected mesh and preserve its materials, scale and existing collection. Decide whether the code may add a camera or should use the current one. Explicitly prohibit saving over the file and launching a final render automatically. Save a separate project copy before running unfamiliar code; words in a prompt do not enforce file safety.

A small review loop for AI-written bpy scripts

Inspect imports, removal operations and file writes first. Run the script in the copied project, then preview named frames such as the start, apex and finish. Check object names, active camera, units and keyframes against the brief. If something is wrong, share the traceback or screenshots and request the smallest adjustment. Preserve the parts that work. Use the Python API documentation that matches your Blender version rather than assuming a confident explanation establishes compatibility.

What makes a good Blender Python prompt

  1. Name your Blender version and use bpy explicitly. API changes can make otherwise reasonable code incompatible.

  2. Describe objects, units and the scene hierarchy so the script does not have to guess what already exists.

  3. Specify duration, frame rate and frame range. Describe subject movement separately from camera movement.

  4. Protect existing work: ask for a new collection, no blanket deletion and no automatic saves or renders.

  5. Request a timeline preview and visual checkpoints before a final render. Check framing, intersections and lighting in Blender.

Bad prompt vs What2Prompt prompt

Bad prompt

“make a cool 3D animation with Python”

What2Prompt prompt

Role

Blender Python developer using bpy.

Context

Work in the stated Blender version and preserve the current scene.

Task

Using bpy in Blender 4.5, create five blocks rising in sequence over six seconds at 24 fps, with a fixed camera and lights.
Put everything in a new collection, preserve my scene and give preview instructions before rendering.

Format

Give the scene plan, script, frame timings and timeline-preview checks.

Guardrails

Preserve existing work. Ask for missing inputs; do not invent source files, paths or successful test results.

The improved brief defines a scene and a timeline rather than an untestable aesthetic promise. The What2Prompt engine helps describe the script you want; Blender runs the code and produces the animation, so inspect both the source and the preview.

Test in a copy of your scene with a short frame range and a lightweight preview. Confirm the active camera, object transforms and interpolation before spending time on a final render. Avoid letting a generated script write files unattended. Blender’s Python API documentation lists bpy operators and data structures; match the documentation version to the application you are actually using.

Reference: Blender Python API documentation ↗

Questions about Blender AI prompts

Does Blender AI run the Python script for me?

What2Prompt writes the brief, and a coding assistant can draft the code; neither automatically runs it in Blender here. Open Blender’s Scripting workspace, create a text block in the Text Editor and paste the reviewed script there. Save a separate copy of your project before running unfamiliar code. A bpy script needs Blender’s Python environment; it is not generally a standalone script for an ordinary terminal Python interpreter.

How do I stop a script deleting my existing scene?

Explicitly forbid deleting objects or overwriting files, and request a new named collection for generated content. Review the script for removal operations before running it. Work in a copied project: prompt instructions are not a security barrier and a script can still make destructive changes.

Why does the animation look wrong even when the script runs?

Successful execution does not prove that the camera framing, scale, keyframe timing or interpolation is right. Preview the timeline and inspect a few specified frames. Share screenshots, object names and the expected movement, then ask for a focused adjustment rather than regenerating the whole scene.

What2Prompt prompt engine, with the W2P mark on cobalt.

Give your next idea a better brief.