import_asset_contract
Import an Almond asset contract from Blender, Unreal, or Rhino into the open Rhino document, restoring dropped materials, PBR values, metadata, placement, and dimensions.
Instructions
Imports an Almond asset contract (from Blender, Unreal, or another Rhino) into the open Rhino document, restoring everything the file format drops.
Runs the full receive sequence: import the GLB, collapse the duplicate materials glTF creates, restore canonical PBR values from the Almond material library (glTF round trips shift base colours), re-attach the almond:* metadata keyed off the surviving material name, place the asset at the requested point using the contract's anchor, and verify the measured size against the contract's recorded dimensions.
Args: contract_path: Path to a .almond.json contract file. x_mm, y_mm, z_mm: Placement point in millimetres (contract anchor). rotation_degrees: Rotation about world Z. layer: Destination layer, created if absent. Returns: JSON with counts restored/deduplicated and a dimension_check comparing what landed against the contract.
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": {
"contract_path": "<contract_path>"
},
"name": "import_asset_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_mm | No | ||
| y_mm | No | ||
| z_mm | No | ||
| layer | No | ALMOND-EXCHANGE | |
| contract_path | Yes | ||
| rotation_degrees | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |