Documentation & page contents

Cloth in space · 12 · in_space

Cloth in space

You have a presented garment. Cloth in space, then a video.

You have

a presented garment

You want

Cloth in space, then a video

You have a presented garment. You want it in the world: flat on a table, on a hanger, folded for retail — then a video of the fold.

This is not a second on-body drape. The blank already exists. Space continues the same cloth off the avatar. Frames are recorded. space.video encodes those frames. It does not invent in-between cloth.

Steps

  1. body.select body
  2. garment.drape blank
  3. garment.finish finished
  4. colorway.apply navy
  5. graphic.apply presented
  6. space.simulate flatlay
  7. space.simulate hanger
  8. space.simulate fold
  9. space.video video

Sample inputs

KeyValue
product_idaop-hoodie
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm
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.

{
  "flatlay.kind": "flatlay",
  "hanger.kind": "hanger",
  "fold.kind": "fold",
  "fold.recorded": true,
  "video.format": "mp4",
  "video.interpolated": false
}

Run

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

python examples/run_workflow.py in_space