cli-anything-blender
它能做什么
这个技能让智能体通过与 Blender 配合的命令行工具构建和修改三维场景。适合希望用文字命令创建三维场景的人。
适用场景
- ✓当你想用文字命令创建一个新的三维场景的时候。
- ✓当你想在现有场景中添加或修改三维物体时。
- ✓当你想用 Blender 渲染三维场景的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/blender/agent-harness/cli_anything/blender/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请创建一个三维场景,里面有一个红色立方体放在平面上,并把它渲染成图片。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能把你的场景保存在一个简单的 JSON 文件中,然后将其转换为用于构建和渲染场景的 Blender 脚本。渲染步骤需要安装 Blender。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-blender
A stateful command-line interface for 3D scene editing, following the same patterns as the GIMP CLI harness. Uses a JSON scene description format with bpy script generation for actual Blender rendering.
Installation
This CLI is installed as part of the cli-anything-blender package:
pip install cli-anything-blender
Prerequisites:
- Python 3.10+
- blender (>= 4.2) must be installed on your system
Usage
Basic Commands
# Show help
cli-anything-blender --help
# Start interactive REPL mode
cli-anything-blender
# Create a new scene project
cli-anything-blender scene new -o scene.blend-cli.json
# Run with JSON output (for agent consumption)
cli-anything-blender --json --project scene.blend-cli.json scene info
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-blender
# Enter commands interactively with tab-completion and history
Command Groups
Scene
Scene management commands.
| Command | Description |
|---|---|
new |
Create a new scene |
open |
Open an existing scene |
save |
Save the current scene |
info |
Show scene information |
profiles |
List available scene profiles |
json |
Print raw scene JSON |
Object Group
3D object management commands.
| Command | Description |
|---|---|
add |
Add a 3D primitive object |
remove |
Remove an object by index |
duplicate |
Duplicate an object |
transform |
Transform an object (translate, rotate, scale) |
set |
Set an object property (name, visible, location, rotation, scale, parent) |
list |
List all objects |
get |
Get detailed info about an object |
Material
Material management commands.
| Command | Description |
|---|---|
create |
Create a new material |
assign |
Assign a material to an object |
set |
Set a material property (color, metallic, roughness, specular, alpha, etc.) |
list |
List all materials |
get |
Get detailed info about a material |
Modifier Group
Modifier management commands.
| Command | Description |
|---|---|
list-available |
List all available modifiers |
info |
Show details about a modifier |
add |
Add a modifier to an object |
remove |
Remove a modifier by index |
set |
Set a modifier parameter |
list |
List modifiers on an object |
Camera
Camera management commands.
| Command | Description |
|---|---|
add |
Add a camera to the scene |
set |
Set a camera property |
set-active |
Set the active camera |
list |
List all cameras |
Light
Light management commands.
| Command | Description |
|---|---|
add |
Add a light to the scene |
set |
Set a light property |
list |
List all lights |
Animation
Animation and keyframe commands.
| Command | Description |
|---|---|
keyframe |
Set a keyframe on an object |
remove-keyframe |
Remove a keyframe from an object |
frame-range |
Set the animation frame range |
fps |
Set the animation FPS |
list-keyframes |
List keyframes for an object |
Render Group
Render settings and output commands.
| Command | Description |
|---|---|
settings |
Configure render settings |
info |
Show current render settings |
presets |
List available render presets |
execute |
Render the scene (generates bpy script) |
script |
Generate bpy script without rendering |
Preview
Real preview bundle capture and live preview session commands.
| Command | Description |
|---|---|
preview recipes |
List available preview recipes |
preview capture |
Render a real preview bundle for the active scene |
preview latest |
Return the latest existing preview bundle |
preview live start |
Start a live preview session and publish the first bundle |
preview live push |
Publish a refreshed bundle into the live session |
preview live status |
Read current live-session state without rendering |
preview live stop |
Stop the live session without deleting artifacts |
Typical bundle artifacts for recipe quick:
hero.pngfrom real Eevee preview renderingworkbench.pngfrom real Blender Workbench rendering
Live sessions persist:
session.jsonas the mutable head- immutable bundle directories
trajectory.jsonas append-onl
常见问题
我需要安装 Blender 吗?
需要。你的系统必须安装 Blender 4.2 或更新版本。
场景文件是什么?
它是一个描述你场景的 JSON 文件,该技能会保存并更新它。
我可以查看场景信息吗?
可以。该技能可以显示场景信息和原始场景数据。
详情
作者的原始描述
Command-line interface for Blender - A stateful command-line interface for 3D scene editing, following the same patterns as the GIMP CLI ...
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3184
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。