slice_model
Slice STL, 3MF, OBJ, or STEP files to G-code and a .gcode.3mf project for Anycubic printers, using presets or custom overrides and returning print time and filament estimates.
Instructions
Slice STL/3MF/OBJ/STEP files to G-code plus a .gcode.3mf project (openable in the GUI / sendable to the printer).
printer/process/filaments: preset names or unique substrings; omitted -> GUI selection for that printer. overrides: setting key -> value, routed automatically to process/filament/machine (per-nozzle variants like nozzle_temperature_HS/_BRASS follow the plain key). output_dir defaults to the first model's folder; existing files with the same name are replaced. plate: 0 = all plates. arrange/orient: auto-place and auto-orient (arrange=false keeps the file's coordinates). scale / rotate_z (degrees): STL and OBJ only. copies: total instances of each model. use_project_settings: slice a 3MF with the settings stored inside it (no presets/overrides). Returns gcode paths with print time, filament grams/meters, layer count, key settings and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plate | No | ||
| scale | No | ||
| copies | No | ||
| models | Yes | ||
| orient | No | ||
| arrange | No | ||
| printer | No | ||
| process | No | ||
| rotate_z | No | ||
| filaments | No | ||
| overrides | No | ||
| timeout_s | No | ||
| output_dir | No | ||
| output_name | No | ||
| use_project_settings | No |