合成渲染

synthclaw

by ayakimovich

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.

4.5k内容与创意未扫描2026年3月30日

安装

claude skill add --url https://github.com/openclaw/skills

文档

When to Use

  • Generate synthetic training data with controlled parameter variations
  • Create procedural image datasets with ground truth metadata
  • Automate rendering workflows for ML training data
  • When you need parameter-sweep renders without manual Blender interaction

When NOT to Use

  • Real-time rendering or interactive preview needs (this is batch/offline)
  • Complex scene manipulation beyond Value Node adjustments
  • If Blender is not installed or unavailable in PATH

Requirements

  • Blender 4.0+ installed and available in $PATH
  • Python 3.10+ for the synthclaw package
  • Cycles or EEVEE render engine (auto-selected)

Configuration

No additional configuration required. Ensure blender command is available:

bash
blender --version

Tools

render_procedural_scene

Adjusts procedural Value Nodes and renders a frame in Blender.

Parameters:

  • blend_file (string, required): Absolute path to the .blend file
  • parameters (object, required): Key-value pairs of Value Node names and float values (e.g., {"GrainScale": 2.5, "Roughness": 0.3})
  • output_path (string, required): Where to save the rendered image (e.g., /path/to/output.png)
  • samples (integer, optional): Cycles samples (default: 128). Ignored for EEVEE.
  • engine (string, optional): Render engine - "CYCLES" (default) or "EEVEE"
  • timeout (integer, optional): Custom timeout in seconds. Defaults: 1800 for CYCLES, 60 for EEVEE.
  • reference_image (string, optional): Complete path to a real-world reference image. Used for computing LPIPS similarity and Naturalness Delta.
  • compute_metrics (boolean, optional): Set to true to compute Naturalness/LPIPS metrics after rendering. Default false.

Returns:

  • On success: {"status": "success", "output": "/path/to/output.png", "log": "...", "engine": "CYCLES", "samples": 128, "metrics": {"naturalness_mean": 0.85, "lpips_alex": 0.12}}
  • On error: {"status": "error", "message": "..."}

Examples:

Production quality (CYCLES):

json
{
  "blend_file": "/home/user/project/assets/test.blend",
  "output_path": "/home/user/output/render_01.png",
  "parameters": {
    "GrainScale": 3.0,
    "DisplacementStrength": 1.5
  },
  "engine": "CYCLES",
  "samples": 256
}

Fast testing (EEVEE):

json
{
  "blend_file": "/home/user/project/assets/test.blend",
  "output_path": "/home/user/output/test_render.png",
  "parameters": {
    "GrainScale": 3.0
  },
  "engine": "EEVEE"
}

render_procedural_scene_fast

Convenience function for fast EEVEE rendering. Same as render_procedural_scene with engine="EEVEE".

Parameters:

  • blend_file (string, required): Absolute path to the .blend file
  • parameters (object, required): Key-value pairs of Value Node names and float values
  • output_path (string, required): Where to save the rendered image

render_procedural_scene_production

Convenience function for production Cycles rendering. Same as render_procedural_scene with engine="CYCLES" and higher samples.

Parameters:

  • blend_file (string, required): Absolute path to the .blend file
  • parameters (object, required): Key-value pairs of Value Node names and float values
  • output_path (string, required): Where to save the rendered image
  • samples (integer, optional): Cycles samples (default: 512)

analyze_blend

Analyzes a .blend file and returns available Value Nodes that can be manipulated.

Parameters:

  • blend_file (string, required): Absolute path to the .blend file

Returns: Dict containing status, a complexity object evaluating scene realism, and value_nodes (available parameter names with current values).

Engine Comparison

FeatureCYCLESEEVEE
QualityPhotorealisticReal-time
SpeedSlow (minutes)Fast (seconds)
Timeout30 minutes1 minute
Use caseProductionTesting
SamplesConfigurableN/A

Safety & Limitations

  • Headless execution: Blender runs with -b flag for security
  • Parameter validation: Only float values accepted; non-numeric input is rejected
  • No shell injection: Uses subprocess.run(shell=False) with -- separator
  • CPU fallback: Automatically uses CPU rendering for Cycles if no GPU available
  • Timeout protection: Long renders are killed after timeout to prevent hanging

Files

FilePurpose
src/synthclaw/blender_skill.pyOpenClaw execution wrapper with engine selection
scripts/agent_bridge.pyBlender-side Python script (handles both engines)
scripts/analyze_blends.pyBlender-side analysis script
config/render_schema.jsonTool schema for LLM function calling
config/analyze_schema.jsonSchema for blend file analysis

Example Workflow

  1. User: "Render with grain scale increased and surface rougher"
  2. Agent calls analyze_blend to see available parameters
  3. Agent calls render_procedural_scene_fast (EEVEE) for quick preview
  4. If preview looks good, agent calls render_procedural_scene_production (CYCLES) for final output
  5. Render completes, path returned to user

Version

Compatible with Blender 4.0+. Not backwards compatible with 2.7x.

相关 Skills

文档共著

by anthropics

Universal
热门

围绕文档、提案、技术规格、决策记录等写作任务,按上下文收集、结构迭代、读者测试三步协作共创,减少信息遗漏,写出更清晰、经得起他人阅读的内容。

写文档、方案或技术规格时容易思路散、信息漏,它用结构化共著流程帮你高效传递上下文、反复打磨内容,还能从读者视角做验证。

内容与创意
未扫描149.6k

内部沟通

by anthropics

Universal
热门

按公司常用模板和语气快速起草内部沟通内容,覆盖 3P 更新、状态报告、领导汇报、项目进展、事故复盘、FAQ 与 newsletter,适合需要统一格式的团队沟通场景。

按公司偏好的模板快速产出状态汇报、领导更新和 FAQ,既省去反复改稿,也让内部沟通更统一、更专业。

内容与创意
未扫描149.6k

平面设计

by anthropics

Universal
热门

先生成视觉哲学,再落地成原创海报、艺术画面或其他静态设计,输出 .png/.pdf,强调构图、色彩与空间表达,适合需要高完成度视觉成品的场景。

做海报、插画或静态视觉稿时,用它能快速产出兼顾美感与版式的PNG/PDF成品,原创设计更省心,也更适合规避版权风险。

内容与创意
未扫描149.6k

相关 MCP 服务

免费的加密新闻聚合 MCP,汇集 Bitcoin、Ethereum、DeFi、Solana 与 altcoins 资讯源。

内容与创意
236

by ProfessionalWiki

让 Large Language Model 客户端无缝连接任意 MediaWiki 站点,可创建、更新、搜索页面,并通过 OAuth 2.0 安全管理内容。

内容与创意16 个工具
97

用于Adobe Photoshop自动化的MCP server,让AI assistants直接控制Photoshop。

内容与创意
97

评论