nicolai-wachenschwan / arc-overhang-prusaslicer-integration

A 3D printer slicing algorithm that lets you print 90° overhangs without support material.
GNU General Public License v3.0
334 stars 26 forks source link

Script doesn't work when perimeter_extrusion_width is define as percent #3

Closed 5axes closed 1 year ago

5axes commented 1 year ago

If the parameter perimeter_extrusion_width is define as percentage and not as millimeter the code gCodeSettingDict.get("perimeter_extrusion_width") doesn't return the right value.

image

nicolai-wachenschwan commented 1 year ago

Do you see any kind of Flag/unique property in the gcode, e.g. "%" in that line, that would allow to decide whether it is percent?

5axes commented 1 year ago

Yes It's not a big issue to solved .. You can just test if % is in the parameter : Ie in the Gcode : ; external_perimeter_extrusion_width = 105%

But in this case you need to recalculate the value by getting the nozzle_diameter and calculating the value.

; nozzle_diameter = 0.4

5axes commented 1 year ago

My Modification

image

https://github.com/5axes/arc-overhang-prusaslicer-integration/blob/main/prusa_slicer_post_processing_script.py

nicolai-wachenschwan commented 1 year ago

Thank you for pointing out this problem and solving it! Functionality is added now :)