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
pattern.import→patternpattern.preflightpattern.get→pattern_gotconstruction.propose→constructionconstruction.apply_recipe→constructionconstruction.apply_recipe→constructionconstruction.apply_recipe→constructionconstruction.get→constructionconstruction.preflightbody.select→bodymaterial.get→materialgarment.drape→run
Sample inputs
| Key | Value |
|---|---|
svg_dir | samples/patterns/manufacturer/vb-py-aop-hood |
evidence | ["samples/evidence/printify_aop_hood/front.png","samples/evidence/printify_aop_hood/back.png"] |
body | samples/bodies/male_m_native_straight.json |
material_id | fleece_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