set_material_property
Change a Three.js material property in the live browser scene by material or mesh name, with browser-only preview and undoable pending changes.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Set a material property. Accepts the material name or the name of a mesh that uses it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Material name, or name of a mesh using it | |
| uuid | No | Material UUID | |
| value | Yes | Hex string for colors ("#ff0000"), number for scalars, boolean for flags | |
| property | Yes | color, emissive, emissiveIntensity, roughness, metalness, opacity, transparent, wireframe, visible, side, depthWrite, depthTest, alphaTest, flatShading, fog, envMapIntensity; physical: clearcoat, clearcoatRoughness, transmission, thickness, ior, sheen, sheenColor, sheenRoughness, iridescence, anisotropy, dispersion, specularIntensity, specularColor, attenuationColor |