-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmd line output does not always show correct output file name #4872
Comments
Just to make clear: this output-filename-format was copied directly from system presets in PrusaResearch.ini . |
Slicing from the command line is not used as much as slicing from the GUI.
Does it perform the file name substitution at the end? Does it save to the
proper file name with substitutions applied?
st 14. 10. 2020 v 3:02 odesílatel Giles P <[email protected]> napsal:
… Just to make clear: this output-filename-format was copied directly from
system presets in PrusaResearch.ini .
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4872 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMPSI36R326F6PEBHRKCPLSKT2ATANCNFSM4SP53LIA>
.
|
Yes the file is created correctly with the print_time substituted. The problem is that I have a program that creates a process running cmd line PrusaSlicer, then parses its output to get the filename from the message. This doesn't match the actual filename created, which came from the output-filename-format in the preset. I already have enough work copying out stuff from the presets (which cmd line slicer won't do for me). So I don't want to re-do the output-filename-format parsing as well... |
Thanks, it should be fixed with cc7eaef |
PrusaSlicer 2.2.0, Windows 10, command line mode.
The output file message to the console output does not have all variables substituted. (The file itself is created with the correct name.) This creates problems when parsing the output to determine the output when, for example, it has been set up in a preset.
Here is an example (any STL file will do). The print_time remains in the output file message.
D:\dev\LoftyCAD-MG>"c:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer-console.exe" -g --output-filename-format {input_filename_base}{layer_height}mm{filament_type[0]}{printer_model}{print_time}.gcode 2shapes.STL
System OpenGL library released
Loading MESA OpenGL library: c:\Program Files\Prusa3D\PrusaSlicer\mesa\opengl32.dll
MESA OpenGL library was loaded sucessfully
10 => Processing triangulated mesh
20 => Generating perimeters
70 => Infilling layers
30 => Preparing infill
88 => Generating skirt
90 => Exporting G-code to 2shapes_0.3mm_PLA__{print_time}.gcode
Slicing result exported to 2shapes_0.3mm_PLA__{print_time}.gcode
Expected behaviour: last line should show the actual file name created.
The text was updated successfully, but these errors were encountered: