返回顶部
s

synthclaw合成爪渲染

Render Blender files with agent-controlled procedural parameters for synthetic data generation. Use when generating training data with controlled variations, creating procedural image datasets, or automating Blender renders via natural language. Supports CYCLES (production) and EEVEE (fast testing) render engines.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.3
安全检测
已通过
117
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

synthclaw

技能名称:synthclaw

详细描述:

使用时机

  • - 生成具有可控参数变化的合成训练数据
  • 创建带有真实元数据的程序化图像数据集
  • 自动化机器学习训练数据的渲染工作流
  • 需要参数扫描渲染且无需手动操作Blender时

不适用场景

  • - 需要实时渲染或交互式预览(此为批量/离线模式)
  • 超出数值节点调整范围的复杂场景操作
  • 未安装Blender或PATH中不可用

系统要求

  • - 已安装Blender 4.0+且可在$PATH中调用
  • Python 3.10+用于synthclaw包
  • Cycles或EEVEE渲染引擎(自动选择)

配置

无需额外配置。确保blender命令可用:

bash
blender --version

工具

renderproceduralscene

调整程序化数值节点并在Blender中渲染单帧。

参数:

  • - blendfile(字符串,必填):.blend文件的绝对路径
  • parameters(对象,必填):数值节点名称与浮点值的键值对(例如:{GrainScale: 2.5, Roughness: 0.3})
  • outputpath(字符串,必填):渲染图像保存路径(例如:/path/to/output.png)
  • samples(整数,可选):Cycles采样数(默认:128)。EEVEE模式下忽略。
  • engine(字符串,可选):渲染引擎 - CYCLES(默认)或EEVEE
  • timeout(整数,可选):自定义超时时间(秒)。默认值:CYCLES为1800,EEVEE为60。
  • referenceimage(字符串,可选):真实参考图像的完整路径。用于计算LPIPS相似度和自然度差值。
  • computemetrics(布尔值,可选):设置为true可在渲染后计算自然度/LPIPS指标。默认false。

返回结果:

  • - 成功时:{status: success, output: /path/to/output.png, log: ..., engine: CYCLES, samples: 128, metrics: {naturalnessmean: 0.85, lpipsalex: 0.12}}
  • 错误时:{status: error, message: ...}

示例:

生产级质量(CYCLES):
json
{
blend_file: /home/user/project/assets/test.blend,
outputpath: /home/user/output/render01.png,
parameters: {
GrainScale: 3.0,
DisplacementStrength: 1.5
},
engine: CYCLES,
samples: 256
}

快速测试(EEVEE):
json
{
blend_file: /home/user/project/assets/test.blend,
outputpath: /home/user/output/testrender.png,
parameters: {
GrainScale: 3.0
},
engine: EEVEE
}

renderproceduralscene_fast

用于快速EEVEE渲染的便捷函数。等同于renderproceduralscene的engine=EEVEE模式。

参数:

  • - blendfile(字符串,必填):.blend文件的绝对路径
  • parameters(对象,必填):数值节点名称与浮点值的键值对
  • outputpath(字符串,必填):渲染图像保存路径

renderproceduralscene_production

用于生产级Cycles渲染的便捷函数。等同于renderproceduralscene的engine=CYCLES模式并采用更高采样数。

参数:

  • - blendfile(字符串,必填):.blend文件的绝对路径
  • parameters(对象,必填):数值节点名称与浮点值的键值对
  • outputpath(字符串,必填):渲染图像保存路径
  • samples(整数,可选):Cycles采样数(默认:512)

analyze_blend

分析.blend文件并返回可操作的数值节点列表。

参数:

  • - blend_file(字符串,必填):.blend文件的绝对路径

返回结果: 包含status、评估场景真实感的complexity对象以及value_nodes(可用参数名称及当前值)的字典。

引擎对比

特性CYCLESEEVEE
质量照片级真实实时渲染
速度
慢(分钟级) | 快(秒级) | | 超时 | 30分钟 | 1分钟 | | 用途 | 生产环境 | 测试环境 | | 采样数 | 可配置 | 不适用 |

安全性与限制

  • - 无头执行: Blender使用-b标志运行以确保安全
  • 参数验证: 仅接受浮点值;拒绝非数字输入
  • 无shell注入: 使用subprocess.run(shell=False)并带--分隔符
  • CPU回退: 若无GPU可用,自动使用CPU渲染Cycles
  • 超时保护: 超时后强制终止长时间渲染以防止挂起

文件

文件用途
src/synthclaw/blenderskill.py带引擎选择的OpenClaw执行包装器
scripts/agentbridge.py
Blender端Python脚本(处理两种引擎) | | scripts/analyze_blends.py | Blender端分析脚本 | | config/render_schema.json | 用于LLM函数调用的工具架构 | | config/analyze_schema.json | 用于blend文件分析的架构 |

工作流示例

  1. 1. 用户:渲染时增加颗粒尺度并使表面更粗糙
  2. 智能体调用analyzeblend查看可用参数
  3. 智能体调用renderproceduralscenefast(EEVEE)快速预览
  4. 若预览效果良好,智能体调用renderproceduralscene_production(CYCLES)生成最终输出
  5. 渲染完成,路径返回给用户

版本

兼容Blender 4.0+。不向后兼容2.7x版本。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 synthclaw-1776022958 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 synthclaw-1776022958 技能

通过命令行安装

skillhub install synthclaw-1776022958

下载

⬇ 下载 synthclaw v0.1.3(免费)

文件大小: 14.25 KB | 发布时间: 2026-4-13 12:15

v0.1.3 最新 2026-4-13 12:15
Corrected license to MIT

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部