center_model_on_bed
Reposition a 3D model to the center of the build plate and lower it to the bed surface (z=0). Accepts an STL file and optional bed size or printer ID for automatic adjustment.
Instructions
Center a mesh on the build plate and place at z=0.
Translates the model so it sits centered on the bed with its
lowest point touching the build plate.
:param file_path: Path to the STL file.
:param bed_x_mm: Build plate X dimension (default 256).
:param bed_y_mm: Build plate Y dimension (default 256).
:param printer_id: Optional supported printer model id. When
provided, printer intelligence supplies the bed size.
:param output_path: Output path (defaults to overwriting input).
:returns: Dict with translation applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bed_x_mm | No | ||
| bed_y_mm | No | ||
| file_path | Yes | ||
| printer_id | No | ||
| output_path | No |