curl --request POST \
--url https://api.eddy.engineer/v1/interop.import \
--header 'Content-Type: application/json' \
--data '
{
"format": "<string>",
"blob": "<string>",
"entry": "<string>",
"files": {},
"options": {},
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/interop.import"
payload = {
"format": "<string>",
"blob": "<string>",
"entry": "<string>",
"files": {},
"options": {},
"text": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
format: '<string>',
blob: '<string>',
entry: '<string>',
files: {},
options: {},
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/interop.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/interop.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'format' => '<string>',
'blob' => '<string>',
'entry' => '<string>',
'files' => [
],
'options' => [
],
'text' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/interop.import"
payload := strings.NewReader("{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/interop.import")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Import a UsdPhysics / MJCF / URDF document into a sim scene (IX1)
{format: usda | usdc | usdz | mjcf | urdf, text?, entry?, files?: {<name>: <text> | {blob}}, options?: {root: fixed | free, ground?, dt?, substeps?}} — USD composed (subLayers, references; variants / payloads / instancing refuse typed) from its text form (usda), a binary crate layer (usdc) or a package (usdz), MJCF with its defaults / includes / assets / actuators / equality connect + weld, URDF with the Sim Studio importer’s rules (mass -> density, the kernel re-derives the tensor, effort / velocity seed the drives). The subset per prim / element: Cube / Sphere / Cylinder / Capsule / Cone / Mesh colliders, rigid bodies, mass and material APIs, fixed / revolute / prismatic / spherical / D6 joints with drives; compound colliders and meshes collide as the convex hull with a typed warning; everything else is listed as skipped or refused typed naming the prim. Answers {scene_key, scene_blob_id, blob_uri, scene, report} — the report lists every body (its source, shape, mass and its source), joint, actuator, contact parameter, skipped element and warning; source_hash is the blake3 of the files consumed and the options. Binary USD: a .usdc layer or a .usdz package is a blob in files ({"stage.usdc": {blob}}), and a layer inside a package is named robot.usdz[inner/a.usdc]. Each layer is told from text by its bytes, so a text root may reference binary layers and the other way round, and a binary file imports to the same scene and scene_key as its text export. A binary layer or package that cannot be read answers 400 USD_BINARY_UNSUPPORTED naming the file and the reason: truncated or corrupt, a crate version newer than the reader, a deflated, encrypted or nested package entry, past the bounds (256 MiB a file, 4,000,000 array elements), or an engine built without the reader. Export writes text only. TL3c: blob (a blob id) instead of text: the entry document is read from the blob as the caller and imported exactly as if sent inline; giving both is 400 FILE_GIVEN_TWICE, a blob that is not UTF-8 text 400 BLOB_NOT_TEXT (a binary layer rides files as {blob}).
curl --request POST \
--url https://api.eddy.engineer/v1/interop.import \
--header 'Content-Type: application/json' \
--data '
{
"format": "<string>",
"blob": "<string>",
"entry": "<string>",
"files": {},
"options": {},
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/interop.import"
payload = {
"format": "<string>",
"blob": "<string>",
"entry": "<string>",
"files": {},
"options": {},
"text": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
format: '<string>',
blob: '<string>',
entry: '<string>',
files: {},
options: {},
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/interop.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/interop.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'format' => '<string>',
'blob' => '<string>',
'entry' => '<string>',
'files' => [
],
'options' => [
],
'text' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/interop.import"
payload := strings.NewReader("{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/interop.import")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"format\": \"<string>\",\n \"blob\": \"<string>\",\n \"entry\": \"<string>\",\n \"files\": {},\n \"options\": {},\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of text: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).
Response
ok