5axes / SpoonAntiWarping

Plugin Cura Spoon Anti-Warping
GNU General Public License v3.0
13 stars 0 forks source link

[Request] Print tabs before the model #6

Closed domgregori closed 1 year ago

domgregori commented 1 year ago

Is it possible to have the spoon tabs printed first, before the model? Not sure if plug-ins allow you to do that, so maybe with a Post Processing plug-in?

5axes commented 1 year ago

I don't think we can change succesfuly the printing order via a plugin. But a postprocessing script using the default tabs name could be a solution. But in this case it will be necessar to be in relative extrusion mode.

image

5axes commented 1 year ago

https://github.com/5axes/SpoonAntiWarping/blob/main/resources/scripts/SpoonOrder.py

Current limitation :

Must be in Relative extrusion mode

image

Need to be tested.

domgregori commented 1 year ago

Tried it out but doesn't seem to change anything. In the log I am seeing that it runs with no errors. I'm including a diff file between gcode with no SpoonOrder and with SpoonOrder post processing. gcode_diffed.txt

5axes commented 1 year ago

Layer Analyse must be at least equal to 1 ?

image

domgregori commented 1 year ago

Yep, I have Layer Analyse set to 1 and the tabs are only on the first layer. Tried manually typing in 1 as well and doesn't seem to change anything.

5axes commented 1 year ago

Download the Last release of the code .. Should be OK If the Script works then you should see in the Gcode : image

domgregori commented 1 year ago

That fixed it! It doesn't update the preview in Cura with the new gcode, but I imagine that's a limitation of Cura. When I save the gcode and open it, it is printing the tabs first. Thank you for taking the time to do this, I appreciate it!

Quick question, what editor are you using that has folding for gcode?

5axes commented 1 year ago

Quick question, what editor are you using that has folding for gcode?

Notepad++