Select preset
select_presetMake the named preset the active one for its group (print, filament, or printer).
Instructions
Make the named preset the active one for its group (print, filament, or printer).
Discards unsaved overrides in EVERY preset group, not just the one being switched: a filament switch also drops unsaved print and printer edits, including ones made by hand in the OrcaSlicer window. That is deliberate (OrcaSlicer consults the other groups when switching, and any unsaved one would open a modal dialog nothing can dismiss remotely), so call save_preset first if any unsaved edit should survive. Newer slicer builds report which groups were affected as 'discarded_changes' in the reply.
This also makes it the canonical way to reset dirty config. It leaves the last slice invalid, so re-slice afterwards. Use list_presets for valid names. Because of this, make filament selections and edits before print-group edits (docs/order-of-operations.md).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact name of an existing preset in that group, as returned by list_presets (e.g. '0.20mm Standard'). Unknown names are rejected. | |
| type | Yes | Which preset group to switch: 'print' (process/quality), 'filament' (material), or 'printer' (machine). |