blender.update_object
Modify an existing Blender object while keeping omitted fields unchanged; specify location, rotation, scale, dimensions, visibility, name, or material to apply targeted edits.
Instructions
Change an existing object. Only the fields you pass are touched; omitted fields keep their current value.
location / scale: Blender units (meters) as [x, y, z]. rotation: DEGREES as [x, y, z]. dimensions: final bounding-box size in meters as [x, y, z] (replaces scale). visibility: hide or show the object in the viewport and renders. new_name: rename the object. Fails with OBJECT_ALREADY_EXISTS if that name is taken, rather than silently becoming "Name.001". material: material name to assign, replacing the object's material slots. Created if it does not exist yet; the response says whether it did, through "material_created". material_color: [r, g, b] or [r, g, b, a] in 0..1, used only when the material has to be created. Sets both the viewport colour and the shader, so the solid view and the render agree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| scale | No | ||
| location | No | ||
| material | No | ||
| new_name | No | ||
| rotation | No | ||
| dimensions | No | ||
| visibility | No | ||
| material_color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||