place_pattern
Position a pattern piece on an avatar arrangement point in 3D, then run simulation to drape it. Use this to place patterns accurately before simulating the garment fit.
Instructions
Place a pattern piece in 3D on an avatar arrangement point.
CLO's API has no free XYZ move/rotate; placement goes through arrangement points. Run simulate afterwards to drape.
Args: pattern_index: Pattern to place. arrangement_index: Arrangement point from get_arrangement_points. orientation: Orientation value for the piece on the point. position_x: Position on the arrangement surface (set together with position_y/offset). position_y: Position on the arrangement surface. offset: Distance from the arrangement surface. shape_style: "Flat" or "Curved" (wrap around the body).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| position_x | No | ||
| position_y | No | ||
| orientation | No | ||
| shape_style | No | ||
| pattern_index | Yes | ||
| arrangement_index | No |