Assign Material (Texture Tag)
assign_materialAssign a material to an object by creating or updating a Texture tag. Set projection, UV offset/tiles, and selection restrictions without manually handling parameter IDs.
Instructions
Link a material to an object by creating a Texture tag (or updating an existing one when update_if_exists:true). Avoids wrangling TEXTURETAG_* param ids by hand. Projection aliases: spherical, cylindrical, flat, cubic, frontal, spatial, uvw, shrinkwrap, camera.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object": "<object>",
"material": "<material>"
},
"name": "assign_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional display name for the Texture tag. | |
| object | Yes | Target object. | |
| material | Yes | Material to assign. | |
| uv_tiles | No | [u, v] tile count applied to TEXTURETAG_TILESX/Y. | |
| uv_offset | No | [u, v] offset applied to TEXTURETAG_OFFSETX/Y. | |
| projection | No | Projection alias. Omit to preserve the existing projection. | |
| update_if_exists | No | If a Texture tag already exists on the object, update it in place instead of appending. Default false. | |
| restrict_to_selection | No | Polygon-selection tag name to restrict this texture to. |