pattern_edit_points
Move outline points of a pattern piece to adjust its shape. Use absolute or relative coordinates for precise edits; corner points only, so use for straight-edged pieces or small tweaks.
Instructions
Move outline points of a piece. moves: [{"point": i, "x": .., "y": ..}] absolute or [{"point": i, "dx": .., "dy": ..}] relative (mm, 2D pattern space). Use pattern_info to see point indices/positions. Only corner points are indexed; curve (spline) points on an edge stay where they are, so moving corners of a curved hem distorts it. For built garments prefer garment_rebuild({"length": ...}); use this for straight-edged pieces or small tweaks, then simulate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moves | Yes | ||
| pattern | Yes |