curl --request POST \
--url https://api.eddy.engineer/v1/sequence.animate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"sequence": {},
"assembly": {},
"options": {},
"placements": [
{}
],
"segments": 123
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.animate"
payload = {
"sequence": {},
"assembly": {},
"options": {},
"placements": [{}],
"segments": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({sequence: {}, assembly: {}, options: {}, placements: [{}], segments: 123})
};
fetch('https://api.eddy.engineer/v1/sequence.animate', 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/sequence.animate",
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([
'sequence' => [
],
'assembly' => [
],
'options' => [
],
'placements' => [
[
]
],
'segments' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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/sequence.animate"
payload := strings.NewReader("{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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/sequence.animate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.animate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Turn a build sequence into a Motion Manager animation (keys, per-step cameras, callouts)
The Motion Manager study the Assembly Studio plays for a sequence: every part’s keys, a camera per step that keeps the moving part in view, callouts and explode lines. sequence.render takes the result as animation to write a clip without compiling again. The ss.assembly.sequence/1 document as a MotionStudy of type Animation the Motion Manager plays with no change (MO9’s keys untouched): study.keys[] {t, component, pose {t, r}, interp} sampled on the document’s own evaluation (two keys for a plain translation, one per max_key_angle_deg of rotation, every path waypoint; a screw — a translate with a rotation about each origin — keeps counting its turns); AQ14: a multibody-part step (bodies on the step) keys each moving body as <component>#b<k> (k the kernel’s shell index) with the body’s delta composed on the part’s assembled pose, the part itself unkeyed, and the engine’s frames (sequence.render, sequence.clearance) move that body alone — a player that keys whole components must split the part’s bodies to play it, study.appearance_keys[] that ghost the parts already placed, highlight the parts moving and hide the parts not yet introduced (snap keys at the step boundaries), and study.camera_keys[] {t, cam {theta, phi, dist, panX, panY}, interp} from the auto camera: per step the candidate view directions (the eight canonical views, then a Fibonacci sphere) are scored by an ID-buffer render of the step’s sample times — the moving parts’ visible pixel fraction, the motion not parallel to the view (a hard cut at max_parallel), the parts’ size in frame, penalties for looking from below and for turning far from the previous step — and the best eases in before the step. Timing: travel over speed (default: the longest step takes 1.5 s), turns over spin_rate, clamped to [min_step, max_step], a pause between steps. AQ2.b: timing.slow_near (a gap in document units) slows the play where the movers pass within it of any other part — each step is split into about eight windows, every window’s minimum clearance over its motion is read by the kernel’s swept query on the meshes (every mover against every other part where it stands as the step begins), the windows under the gap play slow_factor (3) times longer, the step is keyed at the window bounds and stretched within max_step; the answer then carries profiles[] {index, step, gap, stretch, windows[] {from, to, min_distance, certified, pair, slow}} and a note per slowed step. direction: build (default) plays the same steps reversed, each backwards, so every build pose is the time-reverse of the explode’s. Answers kind, sequence_key, direction, duration, fps, speed, the study, steps[] {index, explode_index, id, top, members, start, end, duration, travel, turns, keys, direction, axis, camera {view, up, target, radius, theta, phi, dist, pan, score, visibility, visibility_samples, parallel, size, candidate, candidates_scored}}, overlays[] {index, step, start, end, lines[] {component, points}, callouts[] {component, text, point, quantity, fastener, spec, tool, authored}, text}, notes and the content key. Without the assembly (placements only) there are no meshes, so no camera and the travel carries no spin arc. AQ19: when several parts move the camera reads every mover’s own motion (the cut takes the worst, the score the mean).
curl --request POST \
--url https://api.eddy.engineer/v1/sequence.animate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"sequence": {},
"assembly": {},
"options": {},
"placements": [
{}
],
"segments": 123
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.animate"
payload = {
"sequence": {},
"assembly": {},
"options": {},
"placements": [{}],
"segments": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({sequence: {}, assembly: {}, options: {}, placements: [{}], segments: 123})
};
fetch('https://api.eddy.engineer/v1/sequence.animate', 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/sequence.animate",
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([
'sequence' => [
],
'assembly' => [
],
'options' => [
],
'placements' => [
[
]
],
'segments' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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/sequence.animate"
payload := strings.NewReader("{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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/sequence.animate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.animate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sequence\": {},\n \"assembly\": {},\n \"options\": {},\n \"placements\": [\n {}\n ],\n \"segments\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
{direction: build | explode, timing {speed, spin_rate (2 turns/s), min_step (0.5 s), max_step (4 s), pause (0.5 s), fps (30), ease (true), max_key_angle_deg (30), slow_near (off), slow_factor (3)}, look {ghost_alpha (0.25), ghost_color, highlight, hide_removed (true), fade (0 s: AQ18, a linear blend between looks), flash (0 s: AQ18, the part lit as its step ends)}, camera {enabled (true), width, height (96 px), candidates (48), samples (3), w_visibility (1), w_motion (0.5), w_size (0.25), w_smooth (0.3), w_below (0.3), max_parallel (0.94), move_time (0.6 s), up ([0, 0, 1]), min_zoom (0.35), refine (0 rounds: AQ19, rings 10° then 5° off the best), fit_centre (AQ19: the viewer's own fit centre for the pan)}}; every field defaulted.
Response
kind, sequence_key, direction, duration, fps, speed, study, steps, overlays, notes, key