• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Post processing script to reduce retractions 3D Printer File Image 1
Post processing script to reduce retractions 3D Printer File Thumbnail 1

Post processing script to reduce retractions

Bene avatarBene

March 14, 2025

printables-icon
DescriptionCommentsTags

Description

With my Ender 5 i had the problem, that retracting a lot on one spot of the filament, led to grinding down the filament or rolling it flat, which results in a failed print, because the extruder can't extrude filament anymore. If you have a low retraction distance you might not have this problem, since the spot where the extruder is rolling on over and over again is smaller. I need to use 4.5mm as my retraction distance to prevent stringing. Using the script leeds to stringing, where the retraction has been removed, but this is way better than a failed print or reducing the retraction distance which leeds to stringing everywhere. I personally use 22 maximum retractions at one spot (n_retract_max in the script). Cura slicer has this feature implemented, but Prusa slicer doesn't. The script runs automatically when you save the gcode.

The difference between the two pictures doesn't look big, but on the right picture which used the post prcessing script there are 1073 less retractions than on the left. As an example i used this model https://www.printables.com/de/model/318894-japanese-garden-lantern-lamp/files to demonstrate the working principle of the script.

You can find the script here: https://github.com/WatchingWatches/Post_processing_gcode

 When you are interested in the working priciple, read the comments in the script.

Follow the instruction to get it working. If you have any questions, just write a comment.

I also created a group to share and discuss postprocessing scripts here: https://www.printables.com/de/group/post-processing-scripts-y5NPwqZ

License:

Creative Commons — Attribution

Related Models

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se preview image

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se

CreativeTools profile image

CreativeTools

90,992

Important information sign for 3D printers / Wichtiges Hinweisschild für 3D-Drucker :) preview image

Important information sign for 3D printers / Wichtiges Hinweisschild für 3D-Drucker :)

Pat_S profile image

Pat_S

3d Printer Printing 3d Printer preview image

3d Printer Printing 3d Printer

JAJMWHungFamily profile image

JAJMWHungFamily

968

Self-Watering Planter (Small) preview image

Self-Watering Planter (Small)

parallelgoods profile image

parallelgoods

73,215

X, Y and Z calibration tool for IDEX / dual extruder / dual color 3D printers preview image

X, Y and Z calibration tool for IDEX / dual extruder / dual color 3D printers

Voxel3D_NL profile image

Voxel3D_NL

207

sign: don't touch my 3d printer preview image

sign: don't touch my 3d printer

Izzodesign74 profile image

Izzodesign74

682

All In One 3D Printer test preview image

All In One 3D Printer test

majda107 profile image

majda107

64,558

axes calibrage cube-xyz for 3d printers preview image

axes calibrage cube-xyz for 3d printers

H- printed profile image

H- printed

9

7