material_assign
Assign a material to a Blender object by name, either appending a new material slot or replacing an existing one.
Instructions
Assign a material to an object.
Args: object_name: Target object material_name: Material name (must exist in bpy.data.materials) slot_index: Material slot (-1 = append new slot, 0+ = replace slot)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_index | No | ||
| object_name | Yes | ||
| material_name | Yes |