polyhaven-material-swap

Cycle through multiple PolyHaven materials on a product and render each variant. Great for showing color/finish options. Trigger when asked to show material variants, swap textures, create color options, show finish comparisons, or render product in different materials.

Installs1deduplicated source total
8-week historyLatest recorded total per week
GitHub stars—source repository
UpdatedOct 04, 2026normalized snapshot

SKILL.md

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/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 — brushed_metal, rusty_metal, painted_metal_02, corrugated_iron
  • woods — wood_cabinet_worn_long, plywood, bark_brown_02, wood_floor
  • stones — marble_01, concrete_wall_003, rock_face, gravel_floor_02
  • fabrics — fabric_pattern_07, leather_red_02, denim_fabric, burlap_01