闲社服务运行正常AI智能体自动化平台
b

Blender BPY脚本

技能标识:blender_bpy

Blender Python scripting via bpy API. Use for scene automation, procedural modeling, batch rendering, and object manipulation.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Blender BPY脚本

Blender Python 自动化 (bpy)

前置条件

  • - 必须安装 Blender 并可通过 CLI 访问(blender --version)。
  • 脚本运行方式:blender --background --python
  • 交互式使用:通过 Blender 内置的 Python 控制台或 REST 服务器插件连接。

常用代码片段

创建对象

python import bpy bpy.ops.mesh.primitivecubeadd(location=(0, 0, 0)) obj = bpy.context.object obj.name = MyCube

批量渲染所有帧

python import bpy scene = bpy.context.scene scene.render.filepath = //renders/frame_ bpy.ops.render.render(animation=True)

按名称应用材质

python import bpy mat = bpy.data.materials.get(MyMaterial) if mat is None: mat = bpy.data.materials.new(name=MyMaterial) obj = bpy.context.object if obj.data.materials: obj.data.materials[0] = mat else: obj.data.materials.append(mat)

提示

  • - 无界面运行时始终使用 --background。
  • 正确区分使用 bpy.data(全局访问)和 bpy.context(当前选中项)。
  • 对于长时间渲染,考虑在 OpenClaw 中使用 Cron 任务,以免阻塞主聊天。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 blender-bpy-1776075195 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 blender-bpy-1776075195 技能

通过命令行安装

skillhub install blender-bpy-1776075195

下载

⬇ 下载 blender_bpy v1.0.0(免费)

文件大小: 1.31 KB | 发布时间: 2026-4-15 11:54

v1.0.0 最新 2026-4-15 11:54
Initial release enabling Blender automation via the bpy Python API.

- Allows procedural modeling, scene automation, batch rendering, and object manipulation.
- Requires Blender to be installed and accessible from the command line.
- Provides code snippets for creating objects, batch rendering, and applying materials.
- Offers tips for headless operation and workflow optimization.
- Integrates with OpenClaw for user-invocable automation tasks.
返回顶部