返回顶部
b

blender_bpyBlender 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
安全检测
已通过
505
下载量
免费
免费
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部