Measure how big a mesh or model is
r3_component_boundsThe size and place of meshes and imported models, in R3 units (metres): the world-space box around each (min, max, size, centre), the mesh's scale, rotation and parents applied. Name a Mesh, or the root Empty of a Blender model (r3_blender_import makes one, named "_root"), and the box covers it and every mesh under it, with each part listed. Use it before scaling or placing anything relative to its size: to stand a model on the ground, move it so its min.y is the ground height (r3_terrain_height on a terrain); to make it 2 m long, scale by 2 / size. Each answer also gives the project camera's position and lookAt that show it whole on any screen, a phone held upright included: use it to frame a model. Several in one call (up to 20). Works with no R3 tab open, from the project as it is kept; read-only.
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": {
"projectId": "<projectId>",
"entityRefs": "<entityRefs>"
},
"name": "r3_component_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project, from r3_project_list or r3_project_create. | |
| entityRefs | Yes | Meshes or model root Empties to measure, by entityRef (r3_project_load lists them) or id, e.g. ["truck_root"]. Up to 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| projectId | Yes | ||
| components | Yes | ||
| unreadable | Yes | ||
| projectName | Yes |