import_mesh
Imports loose OBJ or FBX models into the Daz scene at the correct scale without using the importer dialog, then returns the new node, size, and surfaces.
Instructions
Imports a loose OBJ or FBX model (Sketchfab, CGTrader, Blender, a package's meshes) into the scene with the right size, without the importer dialog. Returns the new node, its size in cm and its surfaces. Clothing modeled for a figure then goes through wearable_from_mesh. For FBX, leave units on auto: the file states its units, and Blender keeps the meters-to-cm factor in the object scale.
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": {
"path": "<path>"
},
"name": "import_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of an .obj or .fbx file. | |
| room | No | A room or set: drop_to_floor stands its floor (the largest level surface with something over it and room to stand, so not a flat roof, an upper storey or the ground) on Y = 0, not its lowest point, which is often ground or scenery outside. | |
| take | No | FBX: animation take to import. | |
| glass | No | Make the surfaces the file marks see-through (windows, glasses) clear Iray glass. | |
| label | No | Label for the imported node. | |
| scale | No | Multiply its size by this, e.g. 0.1 when mesh_inspect or a first import says it is 10x too big. | |
| units | No | Units the file is in. auto: OBJ is guessed from its size, FBX uses the units stored in the file. | auto |
| height | No | Scale it uniformly to this height in cm (e.g. 180 for a person). | |
| options | No | Extra importer settings (advanced). | |
| up_axis | No | OBJ only: Z for Z-up files that import lying down. | Y |
| position | No | [x, y, z] cm. | |
| keep_empties | No | Keep the camera, light and empty nodes a Blender export brings along. | |
| drop_to_floor | No | Put its lowest point on the floor. Leave off for clothing modeled around a figure. |