create_sweep
Generate 3D swept geometry by extruding a profile along a path. Create handles, pipes, cables, frames, rings, or springs with optional taper, caps, and bevels.
Instructions
Sweep a profile along a 3D path: mug/bag/door handles, pipes, cables, hoses, bent tubular chair frames, picture frames (closed + rect), rails, springs, horns (taper).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | ||
| name | No | Sweep | |
| path | Yes | 3D path points [[x,y,z], ...] in object space (metres). | |
| bevel | No | Rounded edges via an angle-limited Bevel modifier with hardened normals: width in metres (e.g. 0.002 for a 10 cm part), or {width, segments, angle}. true = automatic width. | |
| taper | No | [start_scale, end_scale] or one scale per path point. | |
| closed | No | Loop the path (rings, frames, rims). | |
| origin | No | Where the origin sits on the part's bounding box: center, bottom, top, left, right, front, back, min, max, or keep (geometry coordinates exactly as given). origin='bottom' + location z=0 stands a part on the floor. | keep |
| parent | No | ||
| smooth | No | Smooth curve through the points (false = straight segments with sharp corners). | |
| profile | No | Cross-section: a radius number, {type:'circle', radius}, {type:'rect', size:[w,h], corner_radius}, or {type:'custom', points:[[x,y],...], interpolation:'smooth'}. | |
| shading | No | auto = smooth with sharp edges kept above smooth_angle (best default); smooth; flat. | auto |
| location | No | World position [x,y,z] (metres) of the object origin. | |
| material | No | Material preset name (list_material_presets), or {preset, color, roughness, weathering, ...} like apply_material, or the name of an existing material. Presets with a real-world scan use Poly Haven automatically; {'polyhaven': 'mossy rock'} picks any Poly Haven texture by description. | |
| rotation | No | Rotation [x,y,z] in degrees. | |
| collection | No | ||
| resolution | No | ||
| subdivision | No | Subdivision Surface levels (1-3) for soft/organic shapes. |