Set config values
set_configApply config changes to the active project as unsaved overrides, atomically: if any key is invalid the whole batch is rejected and nothing changes. Returns {applied, errors}.
Instructions
Apply config changes to the active project as unsaved overrides, atomically: if any key is invalid the whole batch is rejected and nothing changes. Returns {applied, errors}.
Overrides show as modified in get_status, are not written to any preset file, and revert if the preset is reselected; call save_preset to persist them. Each apply invalidates the last slice, so re-slice afterwards. It does not run the physics gate, so for temperature, speed, acceleration, or flow keys run check_profile_physics before trusting the result. To edit a stored preset rather than the live project, use edit_preset.
On a multi-filament setup do filament edits before print edits: changing another slot's value means select_preset for that slot, which discards unsaved print overrides (docs/order-of-operations.md).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Map of OrcaSlicer config key to new value, e.g. {'layer_height': 0.2, 'sparse_infill_density': '15%'}. Values must match each setting's type; percent settings take strings like '15%'. Discover valid keys with search_settings, find_config_keys, or describe_setting. Do NOT echo back a get_config value for a per-filament setting (hot_plate_temp, fan_min_speed, nozzle_temperature_initial_layer, ...): get_config reports those merged across every loaded filament ('70,100,70,70,35'), while this writes the one filament preset open in the Filament tab, so pass that preset's single value instead. |