Assign Material (Texture Tag)
assign_materialCreates or updates a Texture tag to link a material to an object. Supports projection aliases, UV tiling, offset, and polygon-selection restriction.
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.
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. |