Spritesheets

Put accessories on a rigged 3D model for Directional Sprites: up to 8 items, each at the `placement` fitDirectionalAccessory returned (or, without one, at the automatic fit plus the same size/move/turn adjustments). Returns `model_url`, one GLB of the model holding them all (kept 7 days): pass it as `model` to createDirectionalSprites, createDirectionalStills or previewDirectionalSprites. When `model` is the URL of one of your 3D models (as listGenerations or create3DModel returned it), the items are also saved on that model (`saved: true`; `save_on_model: false` skips it), so the Ludo web app's Directional Sprites shows them on it. Items the model already had saved stay on it and in the GLB (`kept`), except those held by a bone a new item takes; `keep_saved: false` replaces them all. Free (no credits) and synchronous. Requires an API key (user scope).

Changed on
post/assets/sprite/directional-accessories

Request

Request body

modelstring required

The rigged 3D model, as a URL or base64-encoded GLB file. Up to 30MB. The URL of one of your 3D models saves the items on it too.

save_on_modelboolean

Save the items on the model when it is one of your 3D models. False only builds the GLB.

keep_savedboolean

When the model is one of your 3D models, keep the items it already has saved, except those held by a bone one of these items takes, and put them in the GLB too (listed in kept). False replaces them all with these items.

Response

Success

model_urlstring

The model holding every item, as one GLB (kept 7 days). Pass it as model to createDirectionalSprites.

savedboolean

Whether the items were saved on the model (it is one of your 3D models, and save was not false).

Changes