set_fabric_physics
Set a fabric's physical properties (stretch, bend, shear, buckling, friction) while preserving color, texture, and name. Applies measured physics for realistic drape or custom cloth behavior.
Instructions
Set all of a fabric's physical properties (how it stretches, bends and hangs), keeping its colour, texture and name. CLO cannot report a fabric's current values (only weight and thickness, via get_fabric_info), so every value is written: the defaults are CLO's documented defaults, not the fabric's own. Pass real values for a specific cloth, or keep a library fabric (add_fabric) whose physics were measured.
Args: fabric_index: Fabric to change. weight_gsm: Weight in g/m2. thickness_mm: Thickness in mm. stretch_weft: Stretch stiffness across the grain (weft); higher = less stretch. stretch_warp: Stretch stiffness along the grain (warp). shear: Shear stiffness (bias stretch). bending_weft: Bending stiffness across the grain; higher = stiffer, fewer folds. bending_warp: Bending stiffness along the grain. bending_bias: Bending stiffness on the bias. buckling_ratio: Buckling ratio (all directions). buckling_stiffness: Buckling stiffness (all directions). friction: Friction. internal_damping: Internal damping. content: Optionally also set the content label, e.g. "60% Cotton, 40% Linen". property_name: Name for this set of physical properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shear | No | ||
| content | No | ||
| friction | No | ||
| weight_gsm | No | ||
| bending_bias | No | ||
| bending_warp | No | ||
| bending_weft | No | ||
| fabric_index | Yes | ||
| stretch_warp | No | ||
| stretch_weft | No | ||
| thickness_mm | No | ||
| property_name | No | Custom | |
| buckling_ratio | No | ||
| internal_damping | No | ||
| buckling_stiffness | No |