Blender MCP Bridge
This skill connects Forge (blender_agent) directly to a running Blender instance.
Instructions
Cette skill est un
Bridge MCP vers Blender. Tu ne dois pas coder la géométrie complexe à la main si un modèle existe.
🛡️ Professional Scripts Library (Standard Operating Procedures)
Avant de coder une solution ad-hoc, vérifie si un script maître existe dans ton dossier
scripts/ :
- -
camera_rig_master.py : Utilise-le pour créer un rig professionnel (Empty-based) pour des Orbits 360 ou des travellings stables. studio_lighting.py : (À venir) Pour forcer une configuration de lumière standardisée.animation_pro.py : (À venir) Pour appliquer des courbes d'accélération aux objets.
🛠️ Toolbox MCP
Utilise l'outil
blender_mcp avec les paramètres suivants :
| Tool | Argument | Description |
|---|
| INLINECODE5 | INLINECODE6 (ex: "lock mechanism") | Trouve des modèles pros sur Sketchfab. |
| INLINECODE7 |
model_id | Importe le modèle GLTF/FBX dans la scène. |
|
search_polyhaven_assets |
query,
asset_type (hdris) | Trouve des éclairages réels. |
|
download_polyhaven_asset |
asset_id | Charge l'HDRI ou la Texture. |
|
execute_code |
code (Python BPY) | Le couteau suisse (Caméra, Rendu, Save). |
|
get_scene_info | (none) | Liste les objets présents. |
🚀 Workflow Opti pour "L'Expert 3D"
- 1. Intelligence Scene : Utilise
get_scene_info pour savoir ce qui est déjà là. - Lumière Pro :
- Trouve un HDRI (PolyHaven) pour les reflets.
- Ajoute des
AREA lights pour sculpter l'objet.
- 3. Animation (Exploded View) :
# Exemple de keyframe
obj.location = (0,0,0)
obj.keyframe_insert(data_path="location", frame=1)
obj.location = (1,0,0)
obj.keyframe_insert(data_path="location", frame=40)
- 4. Final Block (execute_code) :
CODEBLOCK1
🎯 Monitoring
Sois bavard sur tes choix de lumières et d'angles. L'utilisateur veut une scène lumineuse et détaillée.
Usage
Use this skill whenever you need real-time feedback from Blender or complex modeling tasks.
Example:
INLINECODE19
Blender MCP 桥接
此技能将 Forge (blender_agent) 直接连接到正在运行的 Blender 实例。
使用说明
此技能是一个指向 Blender 的
MCP 桥接。如果存在现有模型,你不应手动编写复杂的几何体代码。
🛡️ 专业脚本库(标准操作流程)
在编写临时解决方案之前,请检查你的 scripts/ 文件夹中是否存在主脚本:
- - camerarigmaster.py:用于创建专业级(基于空对象)的摄像机装备,实现 360 度环绕或稳定运镜。
- studiolighting.py:(即将推出)用于强制设置标准化的灯光配置。
- animationpro.py:(即将推出)用于为对象应用缓动曲线。
🛠️ MCP 工具箱
使用 blender_mcp 工具并配合以下参数:
| 工具 | 参数 | 描述 |
|---|
| searchsketchfabmodels | query(例如:lock mechanism) | 在 Sketchfab 上搜索专业模型。 |
| downloadsketchfabmodel |
model_id | 将 GLTF/FBX 模型导入场景。 |
| search
polyhavenassets | query, asset_type(hdris) | 查找真实光照环境。 |
| download
polyhavenasset | asset_id | 加载 HDRI 或纹理。 |
| execute_code | code(Python BPY) | 瑞士军刀(摄像机、渲染、保存)。 |
| get
sceneinfo | (无) | 列出当前场景中的对象。 |
🚀 3D专家优化工作流程
- 1. 场景智能:使用 getsceneinfo 了解当前场景中已有的内容。
- 专业灯光:
- 查找 HDRI(PolyHaven)以获得反射效果。
- 添加 AREA 灯光来塑造对象轮廓。
- 3. 动画(分解视图):
python
# 关键帧示例
obj.location = (0,0,0)
obj.keyframe
insert(datapath=location, frame=1)
obj.location = (1,0,0)
obj.keyframe
insert(datapath=location, frame=40)
- 4. 最终代码块(execute_code):
python
import bpy
# 透明渲染
bpy.context.scene.render.film_transparent = True
# 保存主文件
bpy.ops.wm.save
asmainfile(filepath=./lock_master.blend)
# 渲染图像或动画
bpy.ops.render.render(write_still=True)
🎯 监控
请详细说明你的灯光和角度选择。用户希望获得明亮且细节丰富的场景。
使用场景
当你需要 Blender 的实时反馈或执行复杂的建模任务时,请使用此技能。
示例:
使用 blendermcp 工具=createobject 参数={type: MESH_CUBE, name: HeroBox}