Import a Blender model into an R3 project
r3_blender_importAdd a Blender model the account has uploaded (its current version) to an existing R3 project — the whole model, or only the meshes you name. Every Blender mesh object becomes an R3 Mesh keeping its own position, rotation, scale and origin, with its geometry, materials and textures wired up; objects sharing one mesh share one geometry; a Blender Empty becomes an R3 Empty, the objects under it keeping their place relative to it. A whole model is one Entity whose parts hang from a <model>_root Empty: move that Empty to move the model. Reports each object's entityRef so you can reach it with r3_component_set or from code. Use r3_blender_list to choose a model. Pass reparse: true to re-read the .blend itself when the import warns that its meshes were placed at the origin; other projects keep the meshes they use (r3_blender_update moves them, if the user wants). Pass camera to frame the model in a NEW project (its first model: refused on a project that already holds a mesh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera | No | Set the project camera to frame the model, for a NEW project's first model only: refused, with nothing added, when the project already holds a mesh (its camera is then the user's). Omit it to keep the camera. | |
| meshes | No | Import only these meshes (by mesh name), each with its own placement. Default: the whole model. | |
| reparse | No | Re-read the .blend instead of using what was stored at upload time. This is R3's Re-parse button. Slow (it re-parses and re-optimises every texture) but it is the only way to recover object placements and flat shading that an older import never captured. Default false. | |
| projectId | Yes | The project to import into, from r3_project_create. | |
| blenderModelId | Yes | Which Blender model, from r3_blender_list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| 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. | |
| entity | No | ||
| fileId | Yes | ||
| status | Yes | ||
| objects | No | ||
| filename | Yes | ||
| reparsed | Yes | ||
| warnings | No | ||
| cameraSet | No | ||
| meshCount | No | ||
| projectId | Yes | ||
| textureCount | No | ||
| materialCount | No | ||
| blenderModelId | Yes | ||
| componentCount | No | ||
| appliedInBlender | No | ||
| cameraControlsAdded | No |