serp_layers
Create, rename, assign, hide, style, and delete 3D model layers, including nested layers and hatch/cut display settings, to organize objects and control viewport visibility.
Instructions
Manage layers. action: 'list', 'create', 'rename', 'visible', 'current', 'color' (color as [r,g,b] 0-1), 'assign' (move objects to layer), 'delete', 'style' (how a layer draws: style={linetype, print_width mm (0 = printer default), screen_width px or 'from print', hatch none/lines/cross/solid or a pattern loaded with the hatchpatterns command, hatch_angle degrees, hatch_spacing mm on paper, hatch_color ink/layer/#rrggbb, hatch_background none/layer/#rrggbb (what a cut shows under its hatch), cut_line_width mm on paper round a cut (0 = none), cut_line_color ink/layer/#rrggbb}). A layer can live under another: pass parent to 'create', and name a layer by its path ('Walls::Interior') where two layers share a name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | ||
| style | No | ||
| action | No | list | |
| parent | No | ||
| objects | No | ||
| visible | No | ||
| new_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |