[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FA1X16J3NHMGGTQV885XT1":3,"skill-same:01M7FA1X16J3NHMGGTQV885XT1":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7FA1X16J3NHMGGTQV885XT1","blender-impl-automation",null,"Use when automating Blender workflows -- batch rendering, headless processing via blender --background, file format conversion, or pipeline integration. Prevents the common mistake of using viewport operators in background mode (no UI context available). Covers command-line rendering, file I\u002FO automation (OBJ\u002FFBX\u002FSTL\u002FUSD\u002FglTF), scene assembly, and CI\u002FCD pipeline integration. Keywords: batch rendering, headless, blender --background, automation, file conversion, OBJ, FBX, STL, USD, glTF, pipeline, command-line, STEP import, CAD format, convert file format, export to web.","lagzgabrielmuller-dot\u002Fkit-ingenieria-3d","lagzgabrielmuller-dot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333339260?v=4","01M7F985KYC0XB2XZ97B5YWH4C","01M7F985MHK8N2NVE4VAR5WBWS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: blender-impl-automation\ndescription: >\n  Use when automating Blender workflows -- batch rendering, headless processing via\n  blender --background, file format conversion, or pipeline integration. Prevents the\n  common mistake of using viewport operators in background mode (no UI context available).\n  Covers command-line rendering, file I\u002FO automation (OBJ\u002FFBX\u002FSTL\u002FUSD\u002FglTF), scene\n  assembly, and CI\u002FCD pipeline integration.\n  Keywords: batch rendering, headless, blender --background, automation, file conversion, OBJ, FBX, STL, USD, glTF, pipeline, command-line, STEP import, CAD format, convert file format, export to web.\nlicense: MIT\ncompatibility: \"Designed for Claude Code. Requires Blender 3.x\u002F4.x\u002F5.x with Python.\"\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# blender-impl-automation\n\n## Quick Reference\n\n### Critical Warnings\n\n**NEVER** use `bpy.ops.export_scene.obj()` or `bpy.ops.export_mesh.stl()` in Blender 4.0+ — these Python exporters are REMOVED. Use `bpy.ops.wm.obj_export()` and `bpy.ops.wm.stl_export()`.\n\n**NEVER** call viewport operators (`bpy.ops.view3d.*`, `bpy.ops.screen.*`) in `--background` mode — no UI context exists. Check `bpy.app.background` before any UI-dependent operator.\n\n**NEVER** use `bpy.ops.wm.invoke_*` in background mode — modal\u002Finteractive operators require a window event loop.\n\n**NEVER** hardcode absolute file paths — use `os.path`, `pathlib.Path`, or command-line arguments.\n\n**NEVER** omit `sys.exit()` in CI\u002FCD scripts — Blender returns 0 by default even on script errors. Use `--python-exit-code 1` (3.0+) or explicit `sys.exit(1)`.\n\n**ALWAYS** set `apply_scale_options` explicitly in FBX export — default scale causes unit mismatch.\n\n**ALWAYS** verify axis conventions (`axis_forward`, `axis_up`) match the target application for FBX\u002FOBJ.\n\n**ALWAYS** set `export_custom_properties=True` for Alembic when preserving AEC metadata.\n\n**ALWAYS** parse custom arguments AFTER the `--` separator in command-line scripts.\n\n### Decision Tree: Automation Approach\n\n```\nWhat kind of automation?\n├─ Render frames\u002Fanimation?\n│  ├─ Single frame → blender -b file.blend -o \u002Fpath\u002Fframe_ -f FRAME\n│  ├─ Animation   → blender -b file.blend -o \u002Fpath\u002Fframe_ -a\n│  └─ Custom settings → blender -b file.blend -P render_script.py\n├─ Convert file formats?\n│  ├─ Single file → blender -b -P convert.py -- --input f --output f\n│  └─ Batch dir   → blender -b -P batch_convert.py -- --dir \u002Fpath\n├─ Assemble scene from sources?\n│  ├─ Full copies → bpy.ops.wm.append() or bpy.data.libraries.load()\n│  ├─ Linked refs → bpy.ops.wm.link()\n│  └─ Overridable → Library Overrides (4.0+)\n├─ Process data without rendering?\n│  └─ blender -b [-file.blend] -P script.py\n└─ CI\u002FCD pipeline?\n   └─ blender -b --python-exit-code 1 -P script.py\n```\n\n### Decision Tree: Export Format\n\n```\nTarget?\n├─ Game engines → FBX (animation) or glTF\u002FGLB (static)\n├─ Web\u002FWebGL   → glTF\u002FGLB (prefer GLB binary)\n├─ 3D printing → STL (bpy.ops.wm.stl_export, 4.0+)\n├─ CAD interchange → OBJ (bpy.ops.wm.obj_export, 4.0+)\n├─ VFX pipeline → USD or Alembic (animated geometry)\n└─ Archival     → USD (.usdc\u002F.usda)\n```\n\n### I\u002FO Operator Version Matrix\n\n| Format | Blender 3.x | Blender 4.0+ |\n|--------|-------------|--------------|\n| OBJ | `bpy.ops.export_scene.obj()` | REMOVED → `bpy.ops.wm.obj_export()` |\n| STL | `bpy.ops.export_mesh.stl()` | REMOVED → `bpy.ops.wm.stl_export()` |\n| PLY | `bpy.ops.export_mesh.ply()` | REMOVED → `bpy.ops.wm.ply_export()` |\n| FBX | `bpy.ops.export_scene.fbx()` | Same (unchanged) |\n| glTF | `bpy.ops.export_scene.gltf()` | Same (unchanged) |\n| USD | `bpy.ops.wm.usd_export()` | Same (unchanged) |\n| Alembic | `bpy.ops.wm.alembic_export()` | Same (unchanged) |\n\n---\n\n## Section 1: Command-Line Interface\n\n```bash\n# Background mode\nblender -b -P script.py\nblender -b scene.blend -P script.py\n\n# Custom arguments (after -- separator)\nblender -b scene.blend -P script.py -- --my-arg value\n\n# Render single frame \u002F animation \u002F frame range\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -f 1\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -a\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -s 1 -e 250 -a\n\n# Set engine \u002F threads\nblender -b scene.blend -E CYCLES -o \u002Ftmp\u002Frender_ -f 1\nblender -b scene.blend -t 8 -o \u002Ftmp\u002Frender_ -a\n\n# Python expression\nblender -b --python-expr \"import bpy; print(bpy.app.version)\"\n\n# CI\u002FCD exit code propagation (Blender 3.0+)\nblender -b --python-exit-code 1 -P script.py\n```\n\n### Argument Parsing Pattern\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Parse arguments after '--' separator\nimport sys, argparse\n\ndef get_args():\n    argv = sys.argv\n    if \"--\" not in argv:\n        return argparse.Namespace()\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"--input\", required=True)\n    parser.add_argument(\"--output\", required=True)\n    parser.add_argument(\"--scale\", type=float, default=1.0)\n    return parser.parse_args(argv[argv.index(\"--\") + 1:])\n```\n\n---\n\n## Section 2: Background Mode\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Detect and guard\nimport bpy\n\nif bpy.app.background:\n    # SAFE: bpy.data, bpy.ops.wm.*, file I\u002FO, render\n    # UNSAFE: viewport ops, UI drawing, modal operators, GPU\n    pass\n```\n\n| Category | Background Mode |\n|----------|----------------|\n| `bpy.data.*` access | YES |\n| File I\u002FO (import\u002Fexport) | YES |\n| `bpy.ops.render.render()` | YES |\n| Non-UI operators | YES |\n| Viewport ops (`view3d.*`) | NO |\n| Modal operators | NO |\n| `context.area` | None — guard access |\n| GPU drawing | NO |\n\n### bpy as a Module (Alternative)\n\n```python\n# Outside Blender: pip install bpy (match Blender's Python version)\nimport bpy\nbpy.ops.wm.read_homefile(use_empty=True)\n# Same capabilities and limitations as --background\n```\n\n---\n\n## Section 3: File Format I\u002FO\n\n### Version-Safe I\u002FO Pattern\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Version-safe OBJ\u002FSTL\nimport bpy\n\ndef export_obj(filepath, **kwargs):\n    if bpy.app.version >= (4, 0, 0):\n        bpy.ops.wm.obj_export(filepath=filepath, **kwargs)\n    else:\n        bpy.ops.export_scene.obj(filepath=filepath, **kwargs)\n\ndef export_stl(filepath, **kwargs):\n    if bpy.app.version >= (4, 0, 0):\n        bpy.ops.wm.stl_export(filepath=filepath, **kwargs)\n    else:\n        bpy.ops.export_mesh.stl(filepath=filepath, **kwargs)\n```\n\n### Key Parameters per Format\n\n**FBX** (`bpy.ops.export_scene.fbx()` — all versions):\n- `apply_scale_options='FBX_SCALE_ALL'` — ALWAYS set\n- `axis_forward='-Z'`, `axis_up='Y'` — verify against target\n- `use_mesh_modifiers=True`, `use_custom_props=True`\n\n**glTF\u002FGLB** (`bpy.ops.export_scene.gltf()` — all versions):\n- `export_format='GLB'` — prefer binary single-file\n- `export_apply=True`, `export_materials='EXPORT'`\n\n**USD** (`bpy.ops.wm.usd_export()` — 2.9+):\n- `selected_objects_only=True`, `export_materials=True`\n- `use_instancing=True`\n\n**Alembic** (`bpy.ops.wm.alembic_export()` — 2.78+):\n- `export_custom_properties=True` — REQUIRED for AEC metadata\n- `selected=True`, `use_instancing=True`\n\n**OBJ 4.0+** (`bpy.ops.wm.obj_export()`):\n- `export_selected_objects=True`, `apply_modifiers=True`\n- `forward_axis='NEGATIVE_Z'`, `up_axis='Y'`\n\n**STL 4.0+** (`bpy.ops.wm.stl_export()`):\n- `export_selected_objects=True`, `ascii_format=False`\n- `apply_modifiers=True`\n\n---\n\n## Section 4: Batch Rendering\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Scripted render\nimport bpy\n\nscene = bpy.context.scene\nscene.render.engine = 'CYCLES'\nscene.render.resolution_x = 1920\nscene.render.resolution_y = 1080\nscene.render.image_settings.file_format = 'PNG'\n\n# Single frame\nscene.render.filepath = \"\u002Ftmp\u002Frender_output\"\nbpy.ops.render.render(write_still=True)\n\n# Animation\nscene.frame_start = 1\nscene.frame_end = 250\nscene.render.filepath = \"\u002Ftmp\u002Fanim\u002Fframe_\"\nbpy.ops.render.render(animation=True)\n```\n\n### Multi-Camera Render\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x\nimport bpy, os\n\noutput_dir = \"\u002Ftmp\u002Frenders\"\nos.makedirs(output_dir, exist_ok=True)\nscene = bpy.context.scene\n\nfor cam in [o for o in bpy.data.objects if o.type == 'CAMERA']:\n    scene.camera = cam\n    scene.render.filepath = os.path.join(output_dir, f\"{cam.name}_\")\n    bpy.ops.render.render(write_still=True)\n```\n\n### EEVEE Engine Version Detection\n\n```python\n# Blender 3.x → 'BLENDER_EEVEE', Blender 4.0+ → 'BLENDER_EEVEE_NEXT'\nif bpy.app.version >= (4, 0, 0):\n    bpy.context.scene.render.engine = 'BLENDER_EEVEE_NEXT'\nelse:\n    bpy.context.scene.render.engine = 'BLENDER_EEVEE'\n```\n\n---\n\n## Section 5: Scene Assembly\n\n### Append vs Link vs libraries.load()\n\n| | `bpy.data.libraries.load()` | `bpy.ops.wm.append()` | `bpy.ops.wm.link()` |\n|--|------|--------|------|\n| Returns imported data | YES | NO | NO |\n| Operator context needed | NO | YES | YES |\n| Background mode safe | YES | YES | YES |\n| Recommended for scripts | YES | Simple cases | Linked refs |\n\n### bpy.data.libraries.load() (Preferred for Scripts)\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Batch append from .blend files\nimport bpy, os, glob\n\nfor blend_path in glob.glob(\"\u002Fpath\u002Fto\u002Fassets\u002F*.blend\"):\n    with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):\n        data_to.objects = data_from.objects  # Import all objects\n    for obj in data_to.objects:\n        if obj is not None:\n            bpy.context.collection.objects.link(obj)\n```\n\n### Append\u002FLink via Operators\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Append single object\nimport bpy, os\n\nsource = \"\u002Fpath\u002Fto\u002Flibrary.blend\"\nbpy.ops.wm.append(\n    filepath=os.path.join(source, \"Object\", \"MyObject\"),\n    directory=os.path.join(source, \"Object\"),\n    filename=\"MyObject\",\n    link=False,\n)\n```\n\n---\n\n## Section 6: Pipeline Integration\n\n### Exit Code Pattern\n\n```python\n# ALWAYS use in CI\u002FCD scripts\nimport sys\n\ntry:\n    do_work()\nexcept Exception as e:\n    print(f\"FAILED: {e}\", file=sys.stderr)\n    sys.exit(1)\n```\n\n```bash\nblender -b --python-exit-code 1 -P script.py\necho $?  # Non-zero on failure\n```\n\n### Environment Variables\n\n| Variable | Purpose |\n|----------|---------|\n| `BLENDER_USER_SCRIPTS` | Custom script search path |\n| `BLENDER_SYSTEM_SCRIPTS` | System-wide script path |\n| `BLENDER_USER_CONFIG` | User config directory |\n| `OCIO` | OpenColorIO config |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — Complete API signatures for I\u002FO, render, and assembly operators\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Full working automation scripts\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — Common automation mistakes with fixes\n\n### Official Sources\n\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.wm.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.export_scene.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.import_scene.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.render.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.app.html\n- https:\u002F\u002Fdocs.blender.org\u002Fmanual\u002Fen\u002Flatest\u002Fadvanced\u002Fcommand_line\u002Farguments.html\n\n### Related Skills\n\n- [blender-impl-operators](..\u002Fblender-impl-operators\u002FSKILL.md) — Modal operators, batch processing, progress reporting\n- [blender-core-runtime](..\u002F..\u002Fcore\u002Fblender-core-runtime\u002FSKILL.md) — Background mode, threading, handlers\n- [blender-core-versions](..\u002F..\u002Fcore\u002Fblender-core-versions\u002FSKILL.md) — Breaking changes across versions\n","# blender-impl-automation\n\n## Quick Reference\n\n### Critical Warnings\n\n**NEVER** use `bpy.ops.export_scene.obj()` or `bpy.ops.export_mesh.stl()` in Blender 4.0+ — these Python exporters are REMOVED. Use `bpy.ops.wm.obj_export()` and `bpy.ops.wm.stl_export()`.\n\n**NEVER** call viewport operators (`bpy.ops.view3d.*`, `bpy.ops.screen.*`) in `--background` mode — no UI context exists. Check `bpy.app.background` before any UI-dependent operator.\n\n**NEVER** use `bpy.ops.wm.invoke_*` in background mode — modal\u002Finteractive operators require a window event loop.\n\n**NEVER** hardcode absolute file paths — use `os.path`, `pathlib.Path`, or command-line arguments.\n\n**NEVER** omit `sys.exit()` in CI\u002FCD scripts — Blender returns 0 by default even on script errors. Use `--python-exit-code 1` (3.0+) or explicit `sys.exit(1)`.\n\n**ALWAYS** set `apply_scale_options` explicitly in FBX export — default scale causes unit mismatch.\n\n**ALWAYS** verify axis conventions (`axis_forward`, `axis_up`) match the target application for FBX\u002FOBJ.\n\n**ALWAYS** set `export_custom_properties=True` for Alembic when preserving AEC metadata.\n\n**ALWAYS** parse custom arguments AFTER the `--` separator in command-line scripts.\n\n### Decision Tree: Automation Approach\n\n```\nWhat kind of automation?\n├─ Render frames\u002Fanimation?\n│  ├─ Single frame → blender -b file.blend -o \u002Fpath\u002Fframe_ -f FRAME\n│  ├─ Animation   → blender -b file.blend -o \u002Fpath\u002Fframe_ -a\n│  └─ Custom settings → blender -b file.blend -P render_script.py\n├─ Convert file formats?\n│  ├─ Single file → blender -b -P convert.py -- --input f --output f\n│  └─ Batch dir   → blender -b -P batch_convert.py -- --dir \u002Fpath\n├─ Assemble scene from sources?\n│  ├─ Full copies → bpy.ops.wm.append() or bpy.data.libraries.load()\n│  ├─ Linked refs → bpy.ops.wm.link()\n│  └─ Overridable → Library Overrides (4.0+)\n├─ Process data without rendering?\n│  └─ blender -b [-file.blend] -P script.py\n└─ CI\u002FCD pipeline?\n   └─ blender -b --python-exit-code 1 -P script.py\n```\n\n### Decision Tree: Export Format\n\n```\nTarget?\n├─ Game engines → FBX (animation) or glTF\u002FGLB (static)\n├─ Web\u002FWebGL   → glTF\u002FGLB (prefer GLB binary)\n├─ 3D printing → STL (bpy.ops.wm.stl_export, 4.0+)\n├─ CAD interchange → OBJ (bpy.ops.wm.obj_export, 4.0+)\n├─ VFX pipeline → USD or Alembic (animated geometry)\n└─ Archival     → USD (.usdc\u002F.usda)\n```\n\n### I\u002FO Operator Version Matrix\n\n| Format | Blender 3.x | Blender 4.0+ |\n|--------|-------------|--------------|\n| OBJ | `bpy.ops.export_scene.obj()` | REMOVED → `bpy.ops.wm.obj_export()` |\n| STL | `bpy.ops.export_mesh.stl()` | REMOVED → `bpy.ops.wm.stl_export()` |\n| PLY | `bpy.ops.export_mesh.ply()` | REMOVED → `bpy.ops.wm.ply_export()` |\n| FBX | `bpy.ops.export_scene.fbx()` | Same (unchanged) |\n| glTF | `bpy.ops.export_scene.gltf()` | Same (unchanged) |\n| USD | `bpy.ops.wm.usd_export()` | Same (unchanged) |\n| Alembic | `bpy.ops.wm.alembic_export()` | Same (unchanged) |\n\n---\n\n## Section 1: Command-Line Interface\n\n```bash\n# Background mode\nblender -b -P script.py\nblender -b scene.blend -P script.py\n\n# Custom arguments (after -- separator)\nblender -b scene.blend -P script.py -- --my-arg value\n\n# Render single frame \u002F animation \u002F frame range\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -f 1\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -a\nblender -b scene.blend -o \u002Ftmp\u002Frender_ -s 1 -e 250 -a\n\n# Set engine \u002F threads\nblender -b scene.blend -E CYCLES -o \u002Ftmp\u002Frender_ -f 1\nblender -b scene.blend -t 8 -o \u002Ftmp\u002Frender_ -a\n\n# Python expression\nblender -b --python-expr \"import bpy; print(bpy.app.version)\"\n\n# CI\u002FCD exit code propagation (Blender 3.0+)\nblender -b --python-exit-code 1 -P script.py\n```\n\n### Argument Parsing Pattern\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Parse arguments after '--' separator\nimport sys, argparse\n\ndef get_args():\n    argv = sys.argv\n    if \"--\" not in argv:\n        return argparse.Namespace()\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"--input\", required=True)\n    parser.add_argument(\"--output\", required=True)\n    parser.add_argument(\"--scale\", type=float, default=1.0)\n    return parser.parse_args(argv[argv.index(\"--\") + 1:])\n```\n\n---\n\n## Section 2: Background Mode\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Detect and guard\nimport bpy\n\nif bpy.app.background:\n    # SAFE: bpy.data, bpy.ops.wm.*, file I\u002FO, render\n    # UNSAFE: viewport ops, UI drawing, modal operators, GPU\n    pass\n```\n\n| Category | Background Mode |\n|----------|----------------|\n| `bpy.data.*` access | YES |\n| File I\u002FO (import\u002Fexport) | YES |\n| `bpy.ops.render.render()` | YES |\n| Non-UI operators | YES |\n| Viewport ops (`view3d.*`) | NO |\n| Modal operators | NO |\n| `context.area` | None — guard access |\n| GPU drawing | NO |\n\n### bpy as a Module (Alternative)\n\n```python\n# Outside Blender: pip install bpy (match Blender's Python version)\nimport bpy\nbpy.ops.wm.read_homefile(use_empty=True)\n# Same capabilities and limitations as --background\n```\n\n---\n\n## Section 3: File Format I\u002FO\n\n### Version-Safe I\u002FO Pattern\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Version-safe OBJ\u002FSTL\nimport bpy\n\ndef export_obj(filepath, **kwargs):\n    if bpy.app.version >= (4, 0, 0):\n        bpy.ops.wm.obj_export(filepath=filepath, **kwargs)\n    else:\n        bpy.ops.export_scene.obj(filepath=filepath, **kwargs)\n\ndef export_stl(filepath, **kwargs):\n    if bpy.app.version >= (4, 0, 0):\n        bpy.ops.wm.stl_export(filepath=filepath, **kwargs)\n    else:\n        bpy.ops.export_mesh.stl(filepath=filepath, **kwargs)\n```\n\n### Key Parameters per Format\n\n**FBX** (`bpy.ops.export_scene.fbx()` — all versions):\n- `apply_scale_options='FBX_SCALE_ALL'` — ALWAYS set\n- `axis_forward='-Z'`, `axis_up='Y'` — verify against target\n- `use_mesh_modifiers=True`, `use_custom_props=True`\n\n**glTF\u002FGLB** (`bpy.ops.export_scene.gltf()` — all versions):\n- `export_format='GLB'` — prefer binary single-file\n- `export_apply=True`, `export_materials='EXPORT'`\n\n**USD** (`bpy.ops.wm.usd_export()` — 2.9+):\n- `selected_objects_only=True`, `export_materials=True`\n- `use_instancing=True`\n\n**Alembic** (`bpy.ops.wm.alembic_export()` — 2.78+):\n- `export_custom_properties=True` — REQUIRED for AEC metadata\n- `selected=True`, `use_instancing=True`\n\n**OBJ 4.0+** (`bpy.ops.wm.obj_export()`):\n- `export_selected_objects=True`, `apply_modifiers=True`\n- `forward_axis='NEGATIVE_Z'`, `up_axis='Y'`\n\n**STL 4.0+** (`bpy.ops.wm.stl_export()`):\n- `export_selected_objects=True`, `ascii_format=False`\n- `apply_modifiers=True`\n\n---\n\n## Section 4: Batch Rendering\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Scripted render\nimport bpy\n\nscene = bpy.context.scene\nscene.render.engine = 'CYCLES'\nscene.render.resolution_x = 1920\nscene.render.resolution_y = 1080\nscene.render.image_settings.file_format = 'PNG'\n\n# Single frame\nscene.render.filepath = \"\u002Ftmp\u002Frender_output\"\nbpy.ops.render.render(write_still=True)\n\n# Animation\nscene.frame_start = 1\nscene.frame_end = 250\nscene.render.filepath = \"\u002Ftmp\u002Fanim\u002Fframe_\"\nbpy.ops.render.render(animation=True)\n```\n\n### Multi-Camera Render\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x\nimport bpy, os\n\noutput_dir = \"\u002Ftmp\u002Frenders\"\nos.makedirs(output_dir, exist_ok=True)\nscene = bpy.context.scene\n\nfor cam in [o for o in bpy.data.objects if o.type == 'CAMERA']:\n    scene.camera = cam\n    scene.render.filepath = os.path.join(output_dir, f\"{cam.name}_\")\n    bpy.ops.render.render(write_still=True)\n```\n\n### EEVEE Engine Version Detection\n\n```python\n# Blender 3.x → 'BLENDER_EEVEE', Blender 4.0+ → 'BLENDER_EEVEE_NEXT'\nif bpy.app.version >= (4, 0, 0):\n    bpy.context.scene.render.engine = 'BLENDER_EEVEE_NEXT'\nelse:\n    bpy.context.scene.render.engine = 'BLENDER_EEVEE'\n```\n\n---\n\n## Section 5: Scene Assembly\n\n### Append vs Link vs libraries.load()\n\n| | `bpy.data.libraries.load()` | `bpy.ops.wm.append()` | `bpy.ops.wm.link()` |\n|--|------|--------|------|\n| Returns imported data | YES | NO | NO |\n| Operator context needed | NO | YES | YES |\n| Background mode safe | YES | YES | YES |\n| Recommended for scripts | YES | Simple cases | Linked refs |\n\n### bpy.data.libraries.load() (Preferred for Scripts)\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Batch append from .blend files\nimport bpy, os, glob\n\nfor blend_path in glob.glob(\"\u002Fpath\u002Fto\u002Fassets\u002F*.blend\"):\n    with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):\n        data_to.objects = data_from.objects  # Import all objects\n    for obj in data_to.objects:\n        if obj is not None:\n            bpy.context.collection.objects.link(obj)\n```\n\n### Append\u002FLink via Operators\n\n```python\n# Blender 3.x\u002F4.x\u002F5.x: Append single object\nimport bpy, os\n\nsource = \"\u002Fpath\u002Fto\u002Flibrary.blend\"\nbpy.ops.wm.append(\n    filepath=os.path.join(source, \"Object\", \"MyObject\"),\n    directory=os.path.join(source, \"Object\"),\n    filename=\"MyObject\",\n    link=False,\n)\n```\n\n---\n\n## Section 6: Pipeline Integration\n\n### Exit Code Pattern\n\n```python\n# ALWAYS use in CI\u002FCD scripts\nimport sys\n\ntry:\n    do_work()\nexcept Exception as e:\n    print(f\"FAILED: {e}\", file=sys.stderr)\n    sys.exit(1)\n```\n\n```bash\nblender -b --python-exit-code 1 -P script.py\necho $?  # Non-zero on failure\n```\n\n### Environment Variables\n\n| Variable | Purpose |\n|----------|---------|\n| `BLENDER_USER_SCRIPTS` | Custom script search path |\n| `BLENDER_SYSTEM_SCRIPTS` | System-wide script path |\n| `BLENDER_USER_CONFIG` | User config directory |\n| `OCIO` | OpenColorIO config |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — Complete API signatures for I\u002FO, render, and assembly operators\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Full working automation scripts\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — Common automation mistakes with fixes\n\n### Official Sources\n\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.wm.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.export_scene.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.import_scene.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.ops.render.html\n- https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Fbpy.app.html\n- https:\u002F\u002Fdocs.blender.org\u002Fmanual\u002Fen\u002Flatest\u002Fadvanced\u002Fcommand_line\u002Farguments.html\n\n### Related Skills\n\n- [blender-impl-operators](..\u002Fblender-impl-operators\u002FSKILL.md) — Modal operators, batch processing, progress reporting\n- [blender-core-runtime](..\u002F..\u002Fcore\u002Fblender-core-runtime\u002FSKILL.md) — Background mode, threading, handlers\n- [blender-core-versions](..\u002F..\u002Fcore\u002Fblender-core-versions\u002FSKILL.md) — Breaking changes across versions\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when automating Blender workflows -- batch rendering, headless processing via blender --background, file format conversion, or pipeline integration. Prevents the common mistake of using viewport operators in background mode (no UI context available). Covers command-line rendering, file I\u002FO automation (OBJ\u002FFBX\u002FSTL\u002FUSD\u002FglTF), scene assembly, and CI\u002FCD pipeline integration. Keywords: batch rendering, headless, blender --background, automation, file conversion, OBJ, FBX, STL, USD, glTF, pipeline, command-line, STEP import, CAD format, convert file format, export to web.\n","Designed for Claude Code. Requires Blender 3.x\u002F4.x\u002F5.x with Python.","main","9bb7acf0c2ec4f44373969cb14e55af3c9a8385f","plugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot","2026-11-09 13:26:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill blender-impl-automation",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill blender-impl-automation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill blender-impl-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",9139,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",23603,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",18213,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fblender\u002Fimpl\u002Fblender-impl-automation\u002Freferences\u002Fmethods.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7FBFSZ93YM463CGS91D0TZG","manimce-best-practices","Trigger when: (1) User mentions \"manim\" or \"Manim Community\" or \"ManimCE\", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.\n\nBest practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX\u002FMathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.\n\nNOT for ManimGL\u002F3b1b version (which uses `manimlib` imports and `manimgl` CLI).","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7FB2K59HNNXS9WKHAMWHC3C","drawio","Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML\u002FER, org charts, Mermaid\u002FCSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For publication figures (paper, thesis, IEEE, camera-ready) use drawio-academic-skills instead.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7FB2BWX7GWK9H2X8BGCYDDD","drawio-academic-skills","Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE\u002FACM submission, manuscript, camera-ready, Word\u002FLaTeX figure, or other publication. Applies venue, figure-type, color, caption\u002Flegend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio-academic-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7FB22JESEAV8T15DJT3D444","uncertainty-and-units","Tracks physical units and propagates measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7FB1ANRSG28R335FDY9SA3R","statistical-analysis","Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fstatistical-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7FB15KRA9D7JCPH4P9T6XJY","simpy","Builds, inspects, tests, and analyzes bounded process-based discrete-event simulations with SimPy. Use for event scheduling, resource queues, interrupts, monitoring, independent replications, warm-up, and reproducible output analysis.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[]]