Create export
export_createExport a revision to GLB, OBJ, STL, .blend, or the complete editable .ngp document for an ngPlant project. Native ngp is a byte-preserving download with no selection, modifiers, scale, presets or baking. enginePreset applies target-engine conventions and overrides yUp/scaleFactor: unity and godot (GLB, Y-up, meters), print (STL scaled ×1000 AND Z-up, because slicers read raw units as millimeters and orient Z-up — the preset is the whole print convention, not just the scale), unreal (GLB converted by UE on import; OBJ/STL scaled ×100 to centimeters). Selection is resolved against the exported revision before dispatch and the response lists exactly which objects were selected — broken down by type, so a stray curve or empty is visible — and a stale id or an empty match fails loudly instead of silently shipping an incomplete file. Curves with no bevel or extrude carry no surface and are skipped (named in the response) unless you pass them in objectIds. Returns a durable job handle; the file becomes an immutable artifact.
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": {
"projectId": "<projectId>",
"format": "<format>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "export_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yUp | No | ||
| format | Yes | ||
| bakeSize | No | ||
| objectIds | No | Platform ids, with selectionPolicy=objects. NOTE: ids are datablock-scoped — deleting and recreating an object mints a NEW id, so a list gathered before an edit can go stale. Prefer objectNamePattern, which is resolved fresh at dispatch. | |
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| revisionId | No | "HEAD" (default) uses the project's current head | HEAD |
| scaleFactor | No | ||
| bakeLighting | No | GLB only: bake the full rendered shading, lights included, into UNLIT emissive textures. The trade is view dependence, and it is not subtle: the bake stores one sample of the shading per surface point, so specular highlights stop moving with the camera, reflections and glass stop responding to their surroundings, and anisotropic or clearcoat sheen becomes a fixed painted shape. It looks correct from the baked viewpoint and drifts as the viewer orbits. Right for a dark or rig-driven scene a web viewer cannot relight, WRONG for a turntable of a metal or glass product — use bakeTextures for that, which bakes procedural material values and leaves lighting to the viewer. | |
| bakeOverflow | No | ||
| bakeTextures | No | GLB only: bake procedural (node-driven) materials to textures before export so viewers keep the rendered look. Meshes without UV layers are unwrapped automatically first, which is slow on many-part assemblies (the response says so, and the job reports per-object bake progress). Only procedural, node-driven values are lost when this is off: materials with constant base colour, metallic and roughness export correctly unbaked, so false is the right choice for most hard-surface work. | |
| enginePreset | No | ||
| applyModifiers | No | ||
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. | |
| bakeObjectLimit | No | ||
| selectionPolicy | No | ||
| excludeObjectIds | No | Drop these specific platform ids. Applied after the other selectors. | |
| objectNamePattern | No | Select by Blender object name with * wildcards, e.g. "Watch_*" or "*_Link". Resolved against this revision at dispatch, so it cannot go stale like objectIds. Combined with selectionPolicy (visible + pattern selects visible matches). | |
| excludeNamePattern | No | Drop objects whose name matches, e.g. "Studio_*". Applied after the other selectors. Omitting one backdrop from a 60-part scene previously meant enumerating 60 explicit ids, which is both tedious and stale-prone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | ||
| yUp | Yes | ||
| selection | Yes | Resolved runner selection policy; this field is a string, not a selection object. | |
| revisionId | Yes | ||
| scaleFactor | Yes | ||
| selectedCount | Yes | Number of selected objects when the revision summary is available; null means unknown. | |
| expectedCounts | Yes | ||
| selectedObjectIds | Yes |