[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792HBMHRYXWCZ2J960V6A8K":3,"skill-same:01M792HBMHRYXWCZ2J960V6A8K":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M792HBMHRYXWCZ2J960V6A8K","blender-tooling",null,"Build Blender Python add-ons, asset validators, exporters and pipeline automation. Use when writing Python scripts, add-ons, or batch tools for Blender.","poorvith-mp\u002Fskills-gamedev","poorvith-mp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F277478855?v=4","01M78Z5K0YH1Z3PX815PGQ96ND","Poorvith M P","01M792GVN0NZ9V49H6Q6BE3S1S",5,"MIT","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Fblender-tooling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: blender-tooling\nlast_reviewed: 2026-09-06\ngroup: 3D assets\ndescription: >-\n  Build Blender Python add-ons, asset validators, exporters and pipeline automation. Use when\n  writing Python scripts, add-ons, or batch tools for Blender.\n---\n\n# blender-tooling\n\n## Core Philosophy\nManual 3D asset preparation—clicking through 14 menus to apply transforms, rename 40 bones, fix inverted normals, and export FBX files one by one—is an enormous drain on game studio productivity. High-performance art pipelines rely on custom Python automation within Blender (`bpy`). Professional Blender tooling builds robust, headless CLI batch exporters, automated asset validation linters, custom UI panels, and asset post-processors that eliminate human error.\n\n---\n\n## 4-Step Blender Python Tooling Architecture\n\n### Step 1: The Blender Python API Anatomy (`bpy`)\n1. **Core Submodules**:\n   - `bpy.context`: Active selection, active mode, active scene.\n   - `bpy.data`: Datablocks (meshes, armatures, materials, textures, actions).\n   - `bpy.ops`: Operator execution (e.g. `bpy.ops.object.transform_apply()`).\n   - `bpy.types`: Base classes for creating custom Operators, Panels, and Property Groups.\n2. **The Safe Operator Rule**:\n   - Avoid calling `bpy.ops` inside heavy loops (it is slow and requires active 3D context). Mutate `bpy.data` and mesh attributes directly via Python data APIs where possible.\n\n### Step 2: Automated Asset Validation Linters\n1. **Pre-Export Linter Checks**:\n   - Write automated scripts that assert:\n     - Unapplied Scale: `obj.scale != Vector((1.0, 1.0, 1.0))`.\n     - Ngon Count: `any(len(poly.vertices) > 4 for poly in mesh.polygons)`.\n     - Missing Materials \u002F Textures: Materials with missing image filepaths.\n     - Origin Alignment: Origin not at `(0, 0, 0)` for static props.\n2. **The Hard Blocker Gate**:\n   - If a validation check fails, abort export and display an error modal listing exact offender object names.\n\n### Step 3: Custom Add-On Development (`bl_info` Standard)\n1. **Add-On Architecture**:\n   - Structure add-ons with formal registration:\n     ```python\n     bl_info = {\n         \"name\": \"Studio Pipeline Exporter\",\n         \"author\": \"Technical Art Team\",\n         \"version\": (1, 2, 0),\n         \"blender\": (4, 1, 0),\n         \"category\": \"Pipeline\",\n     }\n     ```\n2. **Custom UI Panels in the 3D Viewport**:\n   - Create a dedicated sidebar tab (`N-Panel`) exposing 1-click batch actions: \"Sanitize Asset\", \"Bake Normal Map\", \"Export Game-Ready FBX\".\n\n### Step 4: Headless CLI Batch Processing\n1. **Headless Execution**:\n   - Run Blender without GUI in CI\u002FCD or build servers to process hundreds of assets overnight:\n     ```bash\n     blender -b assets\u002Fcharacter.blend -P scripts\u002Fbatch_export.py -- --output-dir .\u002Fdist\u002Ffbx\n     ```\n2. **CLI Argument Parsing**:\n   - Use `sys.argv[sys.argv.index(\"--\") + 1:]` to parse custom command-line arguments passed after Blender's native flags.\n\n---\n\n## Deliverable Format: Blender Python Add-on Template (`studio_exporter.py`)\n\n```python\n# -*- coding: utf-8 -*-\nbl_info = {\n    \"name\": \"Game Asset Validator & Exporter\",\n    \"author\": \"Tech Art\",\n    \"version\": (1, 0, 0),\n    \"blender\": (4, 0, 0),\n    \"location\": \"View3D > Sidebar > Game Pipeline\",\n    \"category\": \"Pipeline\",\n}\n\nimport bpy\nfrom mathutils import Vector\n\nclass OBJECT_OT_validate_game_asset(bpy.types.Operator):\n    '''Validate active object for game-engine readiness'''\n    bl_idname = \"object.validate_game_asset\"\n    bl_label = \"Validate Active Asset\"\n\n    def execute(self, context):\n        obj = context.active_object\n        if not obj or obj.type != 'MESH':\n            self.report({'ERROR'}, \"No mesh object selected!\")\n            return {'CANCELLED'}\n\n        # 1. Check Unapplied Scale\n        if obj.scale != Vector((1.0, 1.0, 1.0)):\n            self.report({'ERROR'}, f\"Unapplied scale: {obj.scale}. Press Ctrl+A to apply.\")\n            return {'CANCELLED'}\n\n        # 2. Check for Ngons (> 4 vertices)\n        mesh = obj.data\n        ngon_count = sum(1 for poly in mesh.polygons if len(poly.vertices) > 4)\n        if ngon_count > 0:\n            self.report({'ERROR'}, f\"Asset contains {ngon_count} ngons! Triangulate or retopologize.\")\n            return {'CANCELLED'}\n\n        self.report({'INFO'}, \"Asset passed all game-ready checks!\")\n        return {'FINISHED'}\n\nclass VIEW3D_PT_game_pipeline_panel(bpy.types.Panel):\n    '''Custom sidebar panel in 3D Viewport'''\n    bl_label = \"Game Pipeline Tools\"\n    bl_idname = \"VIEW3D_PT_game_pipeline_panel\"\n    bl_space_type = 'VIEW_3D'\n    bl_region_type = 'UI'\n    bl_category = \"Game Pipeline\"\n\n    def draw(self, context):\n        layout = self.layout\n        layout.operator(\"object.validate_game_asset\", icon='CHECKMARK')\n\ndef register():\n    bpy.utils.register_class(OBJECT_OT_validate_game_asset)\n    bpy.utils.register_class(VIEW3D_PT_game_pipeline_panel)\n\ndef unregister():\n    bpy.utils.unregister_class(OBJECT_OT_validate_game_asset)\n    bpy.utils.unregister_class(VIEW3D_PT_game_pipeline_panel)\n\nif __name__ == \"__main__\":\n    register()\n```\n\n---\n\n## Worked Example: Automated 500-Prop Batch FBX Exporter\n\n- **Challenge**: Artists spent 2 days manually opening 500 individual `.blend` files to re-export FBX files after an engine coordinate axis change.\n- **Solution**: Wrote a 60-line headless Python script that opened Blender in background mode, sanitized scales, aligned origins, and exported FBX assets in 12 minutes.\n- **Outcome**: Saved 16 hours of artist labor; eliminated 100% of human export coordinate mistakes.\n\n---\n\n## Verification Checklist\n\n- [ ] Add-on defines compliant `bl_info` dictionary.\n- [ ] Operators use `register()` and `unregister()` lifecycle hooks cleanly.\n- [ ] Validation functions check for unapplied transforms, ngons, and missing textures.\n- [ ] Scripts can execute headlessly in background mode (`blender -b -P script.py`).\n- [ ] Custom script arguments parsed safely after the `--` delimiter.\n\n---\n\n## Anti-Patterns\n\n- **Hardcoding Absolute Filepaths**: Hardcoding `C:\u002FUsers\u002Fartist\u002FDesktop` inside Blender Python tools.\n- **Ignoring Context**: Invoking `bpy.ops` commands that require active 3D Viewport selections inside background headless runs.\n- **Destructive Batch Operations**: Overwriting original `.blend` source files without automated backup checkpoints.\n","# blender-tooling\n\n## Core Philosophy\nManual 3D asset preparation—clicking through 14 menus to apply transforms, rename 40 bones, fix inverted normals, and export FBX files one by one—is an enormous drain on game studio productivity. High-performance art pipelines rely on custom Python automation within Blender (`bpy`). Professional Blender tooling builds robust, headless CLI batch exporters, automated asset validation linters, custom UI panels, and asset post-processors that eliminate human error.\n\n---\n\n## 4-Step Blender Python Tooling Architecture\n\n### Step 1: The Blender Python API Anatomy (`bpy`)\n1. **Core Submodules**:\n   - `bpy.context`: Active selection, active mode, active scene.\n   - `bpy.data`: Datablocks (meshes, armatures, materials, textures, actions).\n   - `bpy.ops`: Operator execution (e.g. `bpy.ops.object.transform_apply()`).\n   - `bpy.types`: Base classes for creating custom Operators, Panels, and Property Groups.\n2. **The Safe Operator Rule**:\n   - Avoid calling `bpy.ops` inside heavy loops (it is slow and requires active 3D context). Mutate `bpy.data` and mesh attributes directly via Python data APIs where possible.\n\n### Step 2: Automated Asset Validation Linters\n1. **Pre-Export Linter Checks**:\n   - Write automated scripts that assert:\n     - Unapplied Scale: `obj.scale != Vector((1.0, 1.0, 1.0))`.\n     - Ngon Count: `any(len(poly.vertices) > 4 for poly in mesh.polygons)`.\n     - Missing Materials \u002F Textures: Materials with missing image filepaths.\n     - Origin Alignment: Origin not at `(0, 0, 0)` for static props.\n2. **The Hard Blocker Gate**:\n   - If a validation check fails, abort export and display an error modal listing exact offender object names.\n\n### Step 3: Custom Add-On Development (`bl_info` Standard)\n1. **Add-On Architecture**:\n   - Structure add-ons with formal registration:\n     ```python\n     bl_info = {\n         \"name\": \"Studio Pipeline Exporter\",\n         \"author\": \"Technical Art Team\",\n         \"version\": (1, 2, 0),\n         \"blender\": (4, 1, 0),\n         \"category\": \"Pipeline\",\n     }\n     ```\n2. **Custom UI Panels in the 3D Viewport**:\n   - Create a dedicated sidebar tab (`N-Panel`) exposing 1-click batch actions: \"Sanitize Asset\", \"Bake Normal Map\", \"Export Game-Ready FBX\".\n\n### Step 4: Headless CLI Batch Processing\n1. **Headless Execution**:\n   - Run Blender without GUI in CI\u002FCD or build servers to process hundreds of assets overnight:\n     ```bash\n     blender -b assets\u002Fcharacter.blend -P scripts\u002Fbatch_export.py -- --output-dir .\u002Fdist\u002Ffbx\n     ```\n2. **CLI Argument Parsing**:\n   - Use `sys.argv[sys.argv.index(\"--\") + 1:]` to parse custom command-line arguments passed after Blender's native flags.\n\n---\n\n## Deliverable Format: Blender Python Add-on Template (`studio_exporter.py`)\n\n```python\n# -*- coding: utf-8 -*-\nbl_info = {\n    \"name\": \"Game Asset Validator & Exporter\",\n    \"author\": \"Tech Art\",\n    \"version\": (1, 0, 0),\n    \"blender\": (4, 0, 0),\n    \"location\": \"View3D > Sidebar > Game Pipeline\",\n    \"category\": \"Pipeline\",\n}\n\nimport bpy\nfrom mathutils import Vector\n\nclass OBJECT_OT_validate_game_asset(bpy.types.Operator):\n    '''Validate active object for game-engine readiness'''\n    bl_idname = \"object.validate_game_asset\"\n    bl_label = \"Validate Active Asset\"\n\n    def execute(self, context):\n        obj = context.active_object\n        if not obj or obj.type != 'MESH':\n            self.report({'ERROR'}, \"No mesh object selected!\")\n            return {'CANCELLED'}\n\n        # 1. Check Unapplied Scale\n        if obj.scale != Vector((1.0, 1.0, 1.0)):\n            self.report({'ERROR'}, f\"Unapplied scale: {obj.scale}. Press Ctrl+A to apply.\")\n            return {'CANCELLED'}\n\n        # 2. Check for Ngons (> 4 vertices)\n        mesh = obj.data\n        ngon_count = sum(1 for poly in mesh.polygons if len(poly.vertices) > 4)\n        if ngon_count > 0:\n            self.report({'ERROR'}, f\"Asset contains {ngon_count} ngons! Triangulate or retopologize.\")\n            return {'CANCELLED'}\n\n        self.report({'INFO'}, \"Asset passed all game-ready checks!\")\n        return {'FINISHED'}\n\nclass VIEW3D_PT_game_pipeline_panel(bpy.types.Panel):\n    '''Custom sidebar panel in 3D Viewport'''\n    bl_label = \"Game Pipeline Tools\"\n    bl_idname = \"VIEW3D_PT_game_pipeline_panel\"\n    bl_space_type = 'VIEW_3D'\n    bl_region_type = 'UI'\n    bl_category = \"Game Pipeline\"\n\n    def draw(self, context):\n        layout = self.layout\n        layout.operator(\"object.validate_game_asset\", icon='CHECKMARK')\n\ndef register():\n    bpy.utils.register_class(OBJECT_OT_validate_game_asset)\n    bpy.utils.register_class(VIEW3D_PT_game_pipeline_panel)\n\ndef unregister():\n    bpy.utils.unregister_class(OBJECT_OT_validate_game_asset)\n    bpy.utils.unregister_class(VIEW3D_PT_game_pipeline_panel)\n\nif __name__ == \"__main__\":\n    register()\n```\n\n---\n\n## Worked Example: Automated 500-Prop Batch FBX Exporter\n\n- **Challenge**: Artists spent 2 days manually opening 500 individual `.blend` files to re-export FBX files after an engine coordinate axis change.\n- **Solution**: Wrote a 60-line headless Python script that opened Blender in background mode, sanitized scales, aligned origins, and exported FBX assets in 12 minutes.\n- **Outcome**: Saved 16 hours of artist labor; eliminated 100% of human export coordinate mistakes.\n\n---\n\n## Verification Checklist\n\n- [ ] Add-on defines compliant `bl_info` dictionary.\n- [ ] Operators use `register()` and `unregister()` lifecycle hooks cleanly.\n- [ ] Validation functions check for unapplied transforms, ngons, and missing textures.\n- [ ] Scripts can execute headlessly in background mode (`blender -b -P script.py`).\n- [ ] Custom script arguments parsed safely after the `--` delimiter.\n\n---\n\n## Anti-Patterns\n\n- **Hardcoding Absolute Filepaths**: Hardcoding `C:\u002FUsers\u002Fartist\u002FDesktop` inside Blender Python tools.\n- **Ignoring Context**: Invoking `bpy.ops` commands that require active 3D Viewport selections inside background headless runs.\n- **Destructive Batch Operations**: Overwriting original `.blend` source files without automated backup checkpoints.\n",{"name":5,"group":24,"description":7,"last_reviewed":25},"3D assets",1788652800000,"main","d661d370a67c4532034e3d1d87c4aec237077f34","skills\u002Fblender-tooling",0,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskillary","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp","poorvithmp.com","Shipping tools for problems people notice too late.","2026-10-02 21:32:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add poorvith-mp\u002Fskills-gamedev --skill blender-tooling",{"tool":42,"command":43},"bunx","bunx skills add poorvith-mp\u002Fskills-gamedev --skill blender-tooling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add poorvith-mp\u002Fskills-gamedev --skill blender-tooling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Fblender-tooling\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"blender-tooling.skill","OTHER","其他",3503,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Fblender-tooling\u002Fblender-tooling.skill",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"evals\u002Frouting.yaml","REFERENCE","参考文档",931,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Fblender-tooling\u002Fevals\u002Frouting.yaml",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M792N6JWJ1J9XBK6HKFHWRHA","unreal-worlds","Build open worlds with World Partition, Landscape, procedural foliage, HLOD and level streaming. Use when sculpting landscapes, biomes, or World Partition in Unreal.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-worlds\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M792N3JHMS0FWY4YJJ4X60PV","unreal-world-builder","Moved to unreal-worlds in skills-gamedev. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-world-builder\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M792N0XGH0E9XK3ZCR34Z18B","unreal-technical-artist","Moved to unreal-tech-art in skills-gamedev. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-technical-artist\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M792MXKCZ26XGP5RDQHDWRWS","unreal-tech-art","Own the UE5 visual pipeline: Material Editor, Niagara VFX and Procedural Content Generation. Use when creating Unreal materials, Niagara visual effects, or Lumen setups.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-tech-art\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M792MRZ9PB1MNFKPNVDB5AJP","unreal-systems","Work the C++\u002FBlueprint continuum with Nanite, Lumen and the Gameplay Ability System. Use when developing Unreal Engine gameplay in C++, Blueprints, or GAS.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-systems\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M792MQGJ5S2EFDAD5BN5B8V3","unreal-systems-engineer","Moved to modernized catalog in skillary. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-systems-engineer\u002FSKILL.md",[],[]]