Documentation & page contents

Get a Pattern in · 03 · from_pattern

From a Pattern

You have the cut. Seal Construction, drape a blank.

You have

the cut

You want

Seal Construction, drape a blank

You have the cut (2D pieces). You want a sealed Construction, then a blank drape.

This is the Pattern inlet. Manufacturer is one source on pattern.import, not the name of the job. If you already have a library Product, use dress_blank instead.

Steps

  1. pattern.import pattern
  2. pattern.preflight
  3. pattern.get pattern_got
  4. construction.propose construction
  5. construction.apply_recipe construction
  6. construction.apply_recipe construction
  7. construction.apply_recipe construction
  8. construction.get construction
  9. construction.preflight
  10. body.select body
  11. material.get material
  12. garment.drape run

Sample inputs

KeyValue
svg_dirsamples/patterns/manufacturer/vb-py-aop-hood
evidence["samples/evidence/printify_aop_hood/front.png","samples/evidence/printify_aop_hood/back.png"]
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm

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.

{
  "construction.recipe_ids": [
    "folded_band",
    "patch",
    "casing"
  ],
  "run.phase": "draped"
}

Run

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

python examples/run_workflow.py from_pattern