Documentation & page contents

Existing garments · 02 · more_colorways

Same drape, more colors and prints

You already draped. More colors and prints, no second drape.

You have

You already draped

You want

More colors and prints, no second drape

You already have a draped blank. You want navy and black, same artwork, without paying for physics twice. Artwork still arrives from outside. This is an existing garment, not a store listing.

colorway.apply and graphic.apply return child Runs. The parent blank stays immutable.

Steps

  1. body.select body
  2. garment.drape blank
  3. garment.finish finished
  4. colorway.apply navy
  5. graphic.apply navy_print
  6. colorway.apply black
  7. graphic.apply black_print
  8. garment.render render_navy
  9. garment.render render_black

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.

{
  "blank.phase": "draped",
  "navy_print.phase": "presented",
  "black_print.phase": "presented"
}

Run

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

python examples/run_workflow.py more_colorways