Get a Pattern in · 08 · from_swatch
Build a material from a swatch
You have a fabric swatch. Build a Material, drape a library blank.
You have
a fabric swatch
You want
Build a Material, drape a library blank
You have a fabric photo. You want a Material on an existing Product, then a blank drape.
A swatch image does not establish physical behavior. Supply measured properties where available and review inferred assumptions.
Steps
material.build→materialmaterial.list→materialsproduct.get→productbody.select→bodygarment.drape→run
Sample inputs
| Key | Value |
|---|---|
build | samples/materials/build_french_terry.json |
body | samples/bodies/male_m_native_straight.json |
product_id | aop-hoodie |
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": "draped"
}Run
Obtain and install the SDK before running this example from its root directory.
python examples/run_workflow.py from_swatch