使い方
- インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
- 必要なツール、認証情報、対応環境を原文で確認します。
- 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/kevinbadi/blender-skills --skill polyhaven-material-swap開始前の確認
- 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
- スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
PolyHaven Material Swap
Applies multiple PolyHaven PBR textures to the same object one by one and renders each — perfect for showing product finish variants (matte black, glossy white, brushed metal, marble, etc.).
How to Run
node polyhaven-material-swap/scripts/polyhaven-material-swap.js --object Mesh_0 --textures "marble_01,brushed_metal,carbon_fiber" --output ~/Desktop/variants
node polyhaven-material-swap/scripts/polyhaven-material-swap.js --object Mesh_0 --preset metals --output ~/Desktop/metalsOptions
| Option | Description | Default |
|---|---|---|
--object | Blender object name | required |
--textures | Comma-separated PolyHaven texture IDs | required (or use --preset) |
--output | Output directory for rendered images | required |
--preset | Texture set: metals, woods, stones, fabrics | none |
--resolution | Texture resolution: 1k, 2k | 2k |
--render-width | Render image width | 1920 |
--render-height | Render image height | 1080 |
--samples | Render samples | 64 |
--port | Blender MCP port | 9876 |
Presets
- metals — brushedmetal, rustymetal, paintedmetal02, corrugated_iron
- woods — woodcabinetwornlong, plywood, barkbrown02, woodfloor
- stones — marble01, concretewall003, rockface, gravelfloor02
- fabrics — fabricpattern07, leatherred02, denimfabric, burlap01