mat_set_diffuse
Set the diffuse or base color on 3ds Max materials, automatically adapting to Standard or Physical material. Accepts RGB values or hex strings.
Instructions
设置材质的漫反射/基础色。对 StandardMaterial 写入 diffuse,对 PhysicalMaterial 写入 base_color,自动适配。颜色接受 [r,g,b](0-255)或 "#RRGGBB"。 [English] Set the diffuse/base colour. Writes diffuse for a StandardMaterial and base_color for a PhysicalMaterial, auto-adapting. Accepts [r,g,b] (0-255) or a "#RRGGBB" string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | 漫反射颜色 [0-255],也可传 "#RRGGBB"。 | Diffuse colour [0-255], or a "#RRGGBB" string. | |
| material | Yes | 材质名称。 | Material name. |