set_pattern_state
Set a pattern piece's simulation state—freeze, strengthen, solidify, hide, adjust layer, mesh density, or grain direction—to control its behavior in CLO3D simulations.
Instructions
Set simulation state of a pattern piece. Only the values you pass are changed.
CLO's API cannot place pins; freeze or strengthen a piece to hold it in place instead.
Args: pattern_index: Pattern to change. frozen: Freeze (excluded from simulation, stays where it is). strengthened: Strengthen (stiffer, holds shape). solidified: Solidify. solidify_strength: Solidify strength. hidden_3d: Hide the piece in the 3D window. layer: Layer number (higher layers sit on top in collisions). particle_distance: Mesh particle distance in mm (smaller = finer mesh, slower). grain_degrees: Grainline direction in degrees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| frozen | No | ||
| hidden_3d | No | ||
| solidified | No | ||
| strengthened | No | ||
| grain_degrees | No | ||
| pattern_index | Yes | ||
| particle_distance | No | ||
| solidify_strength | No |