Overview
While Mslicer is primarily used through the graphical interface, the slicer system can also be used as a standalone command-line application. This allows for automating the slicing of models in bulk or as part of a more complicated build pipeline.You can download the
slicer binary from the latest GitHub release.Basic Usage
The basic command structure is:Simple Example
Slice a single model:Multiple Meshes
You can add multiple meshes to a single slice by using the--mesh argument more than once:
Model Transformations
Model properties like position, rotation, and scale can be modified using flags followed by 3D vectors inx,y,z format. These flags modify the most recently defined mesh.
Position
Set the location of the bottom center of the model bounding box. The origin is the center of the build plate.Rotation
Rotate the model in degrees using roll, pitch, and yaw:Rotation values are automatically converted from degrees to radians internally.
Scale
Scale the model along the X, Y, and Z axes:Combined Transformations
You can combine multiple transformation flags for a single mesh:Complex Example
Slice multiple meshes with different transformations:- The teapot is positioned at (0, 0, -0.05) and scaled by 2x
- The frog is positioned at (100, 0, 0) with default scale
Platform Configuration
Resolution
Set the resolution of the printer mask display in pixels:11520, 5120
Platform Size
Set the size of the printer display/platform in millimeters:218.88, 122.904, 260.0
Layer Height
Set the layer height in millimeters:0.05 mm
Exposure Configuration
Regular Layers
| Flag | Description | Unit | Default |
|---|---|---|---|
--exposure-time | Layer exposure time | seconds | 3.0 |
--lift-distance | Platform lift distance after exposure | mm | 5.0 |
--lift-speed | Platform lift speed | mm/min | 65.0 |
--retract-speed | Platform retract (down) speed | mm/min | 150.0 |
First Layers
First layers use different settings for better bed adhesion:| Flag | Description | Unit | Default |
|---|---|---|---|
--first-layers | Number of first layers | count | 3 |
--first-exposure-time | First layer exposure time | seconds | 30.0 |
--first-lift-distance | Platform lift distance for first layers | mm | 5.0 |
--first-lift-speed | Platform lift speed for first layers | mm/min | 65.0 |
--first-retract-speed | Platform retract speed for first layers | mm/min | 150.0 |
Transition Layers
Transition layers interpolate from first layer settings to regular settings:10 layers
Preview Image
Add a preview image to the output file (will be scaled as needed):Output Formats
The slicer supports multiple output formats based on the file extension:.goo- Elegoo format.ctb- Chitubox format.nanodlp- NanoDLP format
Progress Output
The CLI displays real-time progress during slicing:Out of Bounds Warning
If a model extends outside the print volume:Complete Example
A production-ready command with all common options:Supported File Formats
The slicer loads meshes using themesh_format library and supports:
.stl- Stereolithography files.obj- Wavefront OBJ files