Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
CNCKitchen Merge pull request #11 from 5axes/master
Add the
Latest commit eee6aa1 Jan 23, 2020


alt text

This a Python script that post-processes existing G-Code to add gradient infill for 3D prints.

Watch my YouTube video about it:

Important Notes

In its current for it only works with G-Code files generated with CURA due to the comments CURA puts into the G-Code files.

It is also important to make sure that the "Walls" are printed before the "Infill" ("Infill before Walls" OFF). For this script to work, also activate "Relative Extrusion" under "Special Modes".

Further instructions can be found on my website: by 5axes Posprocessing Script for Cura PlugIn.

Save the file in the C:\Program Files\Ultimaker Cura X.X\plugins\PostProcessingPlugin\scripts directory


Extrusion mode in Cura must be set in relative mode. If it's not the case an error message will be raised in Cura.


No Gcode will be generated by Cura in this case. Same behaviour if Cura settings are not suitable for Gradient Infill modification :

  • Infill pattern type ZigZag and Concentric not allowed
  • The option "Connect Infill Lines" for the other patterns musn't be used.

A new Flow Value for short distance (Linear move < 2 x Gradient distance) added to the standard GradientInfill script.

Add a gradual speed variation for machine without direct drive extruder.


Sample part with a Gradient distance set to 8 mm : 82570108_1223017127904648_3642722292435255296_o

You can’t perform that action at this time.