save_filament_preset
Saves a slot’s filament with its project tweaks as a Bambu Studio user preset that persists after restart; set replace to update an existing preset while keeping AMS slot links valid.
Instructions
Save the filament of a slot, with this project's changes for that slot (temperatures, flow ratio, pressure advance, plate temperatures...), as a Bambu Studio user preset; it appears after Bambu Studio restarts. A new filament (made from a Generic preset, or with another filament_vendor) is saved like Bambu Studio's Create Filament does: its own filament id, so it can be picked for an AMS slot (Device > AMS). Changes to a Bambu filament are saved as a variant of it, so its RFID spools still match it. replace=True updates an existing user preset with that name (e.g. after a calibration): it keeps its filament id, so AMS slots set to it stay valid, and a backup copy is kept. Never overwrites otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slot | Yes | ||
| replace | No |