Optimize for a goal
optimizeSlice a model with five print goals in parallel, compare time and material use, and get a recommended .3mf ready to print without altering your original file.
Instructions
Slice the original and ready-made recipes (quality, balanced, speed, strength, light) in
parallel, with accelerations kept within the printer's limits, and return the comparison plus the
recommended goal variant and its result.3mf (under output/; the original is never modified).
Use it to answer "how should I print this"; pass the user's chosen filament preset in filaments.
Use compare_slices for custom settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | "quality" (fine layers, slower walls), "balanced", "speed", "strength" (more walls and infill) or "light" (least filament). | |
| plate | No | Plate number to slice; 0 = every plate in a single result.3mf. | |
| models | Yes | Absolute paths of the STL or 3MF files to slice together. | |
| machine | No | Machine preset name, e.g. "Bambu Lab P1S 0.4 nozzle". Omit to keep a 3MF project's own settings or use the defaults. | |
| process | No | Process preset name, e.g. "0.20mm Standard @BBL X1C". Needs `machine`. | |
| bed_type | No | Build plate, e.g. "Textured PEI Plate", "Cool Plate", "High Temp Plate". Omit for the usual plate when the filament suits it. | |
| filaments | No | Filament preset names, one per slot (e.g. "Bambu PLA Matte @BBL P1S 0.4 nozzle"). Alone on a 3MF project, replaces its filament. | |
| compare_all | No | True: slice all 5 goals for comparison; false: only the original and `goal`. |