🎉 WIN a Snapmaker U1 Printer! Enter FREE now

--mstpp

<seconds>
Slicing Actions Orca SlicerBambu Studio

Set a per-plate wall-clock ceiling in seconds; if any plate's combined slice-and-export time exceeds it, the process exits immediately with code -58 and remaining plates are skipped.

Details

--mstpp <seconds> sets a per-plate wall-clock ceiling on the slicing operation. After each plate finishes -- including both the slicing pass and the G-code export -- the slicer compares elapsed milliseconds against the limit (the supplied value multiplied by 1000). If the ceiling is breached, slicing stops immediately: the result for the over-limit plate is written to the output JSON, the process records exit code -58, and the run terminates. Remaining plates are never attempted.

The default value is 300 (five minutes per plate). Passing 0 disables the check entirely; any non-zero integer enables it. The check is strictly post-plate: it fires only after a plate's slice completes, so there is no mid-plate interrupt. A plate that finishes at 299 seconds passes; one that finishes at 301 seconds exits the process.

The measured interval spans from just before the slicer begins working on a plate through the end of that plate's G-code export. It is wall-clock time, not CPU time, so a heavily loaded host will hit the ceiling sooner than an idle one. The flag is independent of --no-check: --no-check relaxes validity errors; --mstpp is a hard timeout that --no-check does not suppress.

Watch out for

  • The default is 300 seconds -- the check is active even without an explicit flag. Pass `0` to disable it if your pipeline manages timeouts externally.
  • The exit happens after the over-limit plate finishes, not during it. A plate that takes twice the limit will still run to completion before the process exits; the limit cannot preempt a plate mid-slice.
  • The time window includes G-code export, not just mesh slicing. On large plates the export phase can itself consume several seconds.

Sign up for free today

No credit card required. Connect unlimited printers and get production automation running in minutes.