PrusaSlicer: Programmatic automation?
Hello All,
I have been using PrusaSlicer since GA release and I have been very pleased with the GUI. I want to explore methods of automating my production process, and I was curious if anyone has attempted to automate the slicing process using a CLI, cloud trigger function, or other method.
I am pretty adept with Java, C(++,#,etc), Javascript, PowerShell, etc. Is there an object or function reference that I can use for the basic slicing operations? I want to use the same settings for layer height, infill %, infill pattern, and bed temp, with only slight changes to nozzle temp based on the material I am using.
Basic Logic Flow (obviously I am open to suggestion)
- End user enters their parameters in a web GUI
- Parameters are passed to (Function, Web app, VM with libs or whatever)
- My OpenSCAD uses the parameters to modify the base object
- OpenSCAD output STL for slicing
- STL is sliced and output to storage queue for printing
Has anyone dabbled in this area? I have been scouring the 'net for anyone that has done any sort of end-to-end automation, with very little success.
Kind Regards,
Cory
RE: PrusaSlicer: Programmatic automation?
IIRC the core library that handles the slicing is libslic3r, which the UI is simply built around.
While I don't have any info to hand, I seem to recall reading that there is CLI capability available somehow though.
RE: PrusaSlicer: Programmatic automation?
I have a crappy shell script that I use to automate my calibration prints (12 prints X 4 materials X 9 nozzle sizes). It works well with older Slic3rPE versions, but PrusaSlicer has a bug that won't let it read more than one .ini file at a time. I've created an issue on Prusa's GitHub.
You can call a baseline config, then load successive configs for granular fine tuning when it's working properly.