Documentation & page contents

Existing garments · 01 · dress_blank

Dress a library blank

You have a Product SKU. Drape, dye, print, pictures.

You have

a Product SKU

You want

Drape, dye, print, pictures

You have a Product SKU (aop-hoodie). You want one navy printed hoodie, catalog pictures, and a GLB — an existing garment mapped in 3D, not a store listing.

The blank already holds Pattern and Construction. Artwork arrives as {placement: uri}. Do not import SVGs on this path.

Steps

  1. product.list products
  2. product.get product
  3. pattern.get pattern
  4. construction.get construction
  5. body.list bodies
  6. body.select body
  7. body.get body_got
  8. material.get material
  9. garment.compile compiled
  10. garment.arrange arranged
  11. garment.drape run
  12. garment.finish run
  13. colorway.apply run
  14. graphic.apply run
  15. garment.render render
  16. garment.export export
  17. garment.get got
  18. garment.status status
  19. garment.measure measure
  20. uv.audit uv

Sample inputs

KeyValue
product_idaop-hoodie
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm
colorwaysamples/colorways/navy.json
artworksamples/artwork/aop_hood/map.json

Expected fixture checks

These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.

{
  "run.phase": "presented",
  "run.device": "gpu",
  "render.view_set": "catalog",
  "export.format": "glb",
  "status.state": "succeeded",
  "measure.ok": true,
  "uv.ok": true
}

Run

Obtain and install the SDK before running this example from its root directory.

python examples/run_workflow.py dress_blank