set_material
Apply a material to entities or current selection in SketchUp; missing materials are created, and existing colors change only if requested.
Instructions
Apply a material to entities (entity_ids or the current selection). A missing material is created with color; an EXISTING material keeps its color (unless update_existing=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| back_too | No | ||
| material | Yes | ||
| entity_ids | No | Ids from tool results (selection_info, create_*...); only valid in the current SketchUp session. Empty = current selection. | |
| update_existing | No | true = also recolor an EXISTING material (affects EVERY entity that uses it) |