kageurufu / preprocess_cancellation

Klipper Exclude Object Preprocessor for multiple slicers
GNU General Public License v3.0
152 stars 25 forks source link

EXCLUDE_OBJECT_DEFINE position in Ideamaker files #23

Open mloebbert opened 1 year ago

mloebbert commented 1 year ago

grafik (ideamaker.gcode)

In gcode files sliced using IdeaMaker EXCLUDE_OBJECT_DEFINE are inserted after the 'Total_num'-string what is in any case after the printer start code where the bed meshing takes place. Therefore, the KAMPS add-on which uses EXCLUDE_OBJECT_DEFINE to create an adaptive mesh is not usable with IdeaMaker files.

For other slicers, EXCLUDE_OBJECT_DEFINE are added after the first gcode: grafik (prusaslicer.gcode)

With adding an additional gcode, the position of EXCLUDE_OBJECT_DEFINE is before the print start code and usable for KAMPS.

Please add the same behavior as for other slicers into the ideamaker preprocessing

Pigi-102 commented 10 months ago

I have the same problem too.

Pigi-102 commented 10 months ago

Hello, it seems an easy fix. I've created a PR for this, but if you need here attached there is a patch. preprocess_cancellation.patch.txt