set_material_property
Set a Three.js material property like color, roughness, or wireframe for runtime preview. Ask the user if changes should be temporary or persistent in source code.
Instructions
Set a material property (color, roughness, wireframe, etc.). IMPORTANT: This is a runtime-only preview (lost on reload). Before calling, ASK the user whether they want a runtime preview or a persistent code change.
Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Material name or object/mesh name that owns the material | |
| uuid | No | Material UUID | |
| property | Yes | Property name: color, emissive, roughness, metalness, opacity, transparent, wireframe, visible, side, depthWrite, depthTest, alphaTest, flatShading, fog | |
| value | No | New value (hex string for colors, number for scalars, boolean for flags) |