Open schiele opened 2 months ago
Ran into this as well. I've been working around it by messing with the PrusaSlicer.ini's filament settings. Here's my python snippet if it helps anyone else:
with open(PRUSASLICER_INI_PATH, "r") as f:
ini = f.read()
ini = re.sub(r"filament\s+=.+", f"filament = {material_profile}", ini)
with open(PRUSASLICER_INI_PATH, "w") as f:
f.write(ini)
Description of the bug
The new option --material-profile works with multi-material printers but gets silently ignored with single-material printers.
For the following examples, I set the filament to "Prusament ASA" in the GUI and quit the GUI. After that I tried the following commands on the command line.
Examples with "Original Prusa i3 MK3S & MK3S+ MMU2S" profile where the behavior is correct:
Uses PLA as expected.
Uses PETG as expected.
Now we try the same with a single-material printer:
Here it silently ignores my selection of PLA and uses the ASA setting from the previous GUI session instead.
Again my selection of PETG gets ignored in favor of the previously selected ASA setting in the GUI.
I did some basic debugging and found that it still feeds the correct string (the supplied one) to the function call in line 551 of
src/libslic3r/ProfilesSharingUtils.cpp
This does not cause the desired effect on single-material printers though. I didn't dig deeper since I was not familiar enough with the code.
Project file & How to reproduce
To reproduce the problem use any STL file on the command lines above. The actual content of the STL file is completely irrelevant to this problem. In my example, I used an STL file containing a trivial cube of 1cm in size.
Checklist of files included above
Version of PrusaSlicer
2.8.0
Operating system
Clear Linux OS 41990
Printer model
Original Prusa i3 MK3S & MK3S+