Index of every page on this site: llms.txt
All skills
kevinbadi avatar

/polyhaven-material-swap

@b2f0f81
by Kev Buildskevinbadi/blender-skills375 stars
46
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/kevinbadi/blender-skills/polyhaven-material-swap

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈74 tokens for metadata: the name and description. ≈362 when used: this file.

Description uses 3.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈296 characters, or 3.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

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 — 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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning5mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub5mo

    The skill automates material variants rendering in Blender but contains a code injection vulnerability. It constructs Python scripts by directly interpolating unvalidated input parameters and sends them to a Blender instance for execution, which could allow an attacker to run arbitrary code in the Blender environment if the inputs are maliciously crafted.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at b2f0f81. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago

README badge

README badge for kevinbadi/blender-skills/polyhaven-material-swap