add_layer_action
Schedule a pause, AMS filament change, or custom G-code at a specified Z-height so it runs just before that layer prints.
Instructions
Do something when the print reaches height z (mm), before that layer is printed:
action = pause (e.g. to insert magnets or nuts; message is shown in Bambu Studio),
filament_change (switch to filament slot filament from that height on, with the AMS),
gcode (any G-code line(s), e.g. 'M104 S210'). z is snapped to the nearest real layer at or above it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| z | Yes | ||
| gcode | No | ||
| plate | Yes | ||
| action | Yes | ||
| message | No | ||
| filament | No |