Feature request: Export current settings for command line
Challenge:
- I'm printing letters for my mom to use in scrapbooking. That's ~70 STLs (upper & lower case letters, numbers, and punctuation).
- I've generated the STLs in OpenSCAD and I'm automating rendering to gcode via the command line
- While I have created a command line script that seems to work, the results I'm getting lead to me to think that there's a default difference between the GUI and command line tools and that's resulting in slightly sub-optimal results
Ideas:
The 2 "obvious" ideas I have for being able to tweak settings in the gui, then use those settings on the command line are:
- An export-to-command-line option that will simply export ALL current settings to command line equivalents.
- A new set of command line options to allow the user to use the various profiles built and stored in the gui.
There are probably other options as well.
Is this a "I'm the only person that wants this" feature, or should I submit it as a formal request on GitHub?
Best Answer by --:
Sorry - that link may not have been much help.
But - here's a Windows batch for a command line that loads a config exported from the gui: it seems to work as expected.
"C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer-console.exe" -printer-technology FFF -center 125,105 -g File-to-Slice.stl -load Exported-Config.ini
RE: Feature request: Export current settings for command line
Have you read Bob's scripting exercise?
RE: Feature request: Export current settings for command line
Sorry - that link may not have been much help.
But - here's a Windows batch for a command line that loads a config exported from the gui: it seems to work as expected.
"C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer-console.exe" -printer-technology FFF -center 125,105 -g File-to-Slice.stl -load Exported-Config.ini
RE: Feature request: Export current settings for command line
@tim-m30
Ah, I thought I’d looked through all the options and I didn’t notice -load!
I’m out right now but I’ll try it out later. Many thanks!
RE: Feature request: Export current settings for command line
FYI - the issue with loading multiple config files has been fixed in recent PrusaSlicer releases.
As Tim shows in his example, you can export your working config to a config (not config bundle) file and load that for your base settings. You can also override any parameter on the command line. If there are duplicates, the last specified version takes precedence. Handy if you need different settings for some models.
Raw notes here (unfinished).
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
RE: Feature request: Export current settings for command line
Yeah, the exported config is proving to be perfect! I've tweaked my settings 2-3 times to address some issues and now I'll be able to re-render out all my letters. Thank you so much!