kevinbadi/blender-skills

polyhaven-material-swap

Cycle through multiple PolyHaven materials on a product and render each variant.

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/kevinbadi/blender-skills --skill polyhaven-material-swap

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

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

bash
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/metals

Options

OptionDescriptionDefault
--objectBlender object namerequired
--texturesComma-separated PolyHaven texture IDsrequired (or use --preset)
--outputOutput directory for rendered imagesrequired
--presetTexture set: metals, woods, stones, fabricsnone
--resolutionTexture resolution: 1k, 2k2k
--render-widthRender image width1920
--render-heightRender image height1080
--samplesRender samples64
--portBlender MCP port9876

Presets

  • metals — brushedmetal, rustymetal, paintedmetal02, corrugated_iron
  • woods — woodcabinetwornlong, plywood, barkbrown02, woodfloor
  • stones — marble01, concretewall003, rockface, gravelfloor02
  • fabrics — fabricpattern07, leatherred02, denimfabric, burlap01
from this repository

More skills

All skills