AgentSkillsCN

blender-automation

通过无头脚本与操作符封装,实现 Blender 的自动化操作。

SKILL.md
--- frontmatter
name: blender-automation
description: Automates Blender via headless scripts and operator wrappers.
allowed-tools: Run Command

Blender Automation Skill

Goal: Manipulate 3D assets and maps without opening the GUI.

Capabilities

1. Headless Rendering

Render sprite sheets or thumbnails.

bash
blender -b file.blend -P scripts/blender/render_sprite.py -- ...

2. Mesh Processing

Fix normals, apply modifiers, export to AKM/A3D. Action: Create a temp script importing io_asciicker and running operators.

3. Map Generation

Procedurally generate terrain. Action: Run bpy.ops.asciicker.create_terrain() via background script.

Rules

  1. Always use -b (background) for automation.
  2. Always check bpy.ops return set for {'FINISHED'}.
  3. Visual Verify: If rendering, generate a .png artifact for user review.