• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language G-code
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Klipper Exclude Object Preprocessor for multiple slicers

Klipper GCode Preprocessor for Object Cancellation

This preprocessor modifies GCode files to add klipper's exclude object gcode.

The following slicers are supported:

  • SuperSlicer
  • PrusaSlicer
  • Slic3r
  • Cura
  • IdeaMaker

Installation and usage

SuperSlicer, PrusaSlicer, and Slic3r

Download the provided binary for your platform, and place it in with in your slicer's folder.

In your Print Settings, under Output Options, add preprocess_cancellation.exe; to the "Post-Processing Scripts". For mac or linux, you should just use preprocess_cancellation;

Then, all generated gcode should be automatically processed and rewritten to support cancellation.

G-Codes for Object Cancelation

There are 3 gcodes inserted in the files automatically, and 4 more used to control the object cancellation.

EXCLUDE_OBJECT_DEFINE NAME=<object name> [CENTER=x,y] [POLYGON=[[x,y],...]]

The NAME must be unique and consistent throughout the file. CENTER is the center location for the mesh, used to show on interfaces where and object being canceled is on the bed. POLYGON is a series of points, used to represent the bounds of the object. It can be just a bounding box, a simplified outline, or another useful shape.

EXCLUDE_OBJECT_START NAME=<object name> and EXCLUDE_OBJECT_END [NAME=<object name>]

The beginning and end markers for the gcode for a single object. When an object is excluded, anything between these markers is ignored.

For a full breakdown, see the klipper G-Code Reference

Known Limitations

Cura and Ideamaker sliced files have all support material as a single non-mesh entity. This means that when canceling an object, it's support will still print. Including support that is inside or built onto the canceled mesh. The Slic3r family (including PrusaSlicer and SuperSlicer) treat support as part of the individual mesh's object, so canceling a mesh cancels it's support as well.

How does it work

This looks for known markers inside the GCode, specific to each slicer. It uses those to figure out the printing object's name, and track's all extrusion moves within it's print movements. Those are used to calculate a minimal bounding box for each mesh. A series of EXCLUDE_OBJECT_DEFINE gcodes are placed in a header, including the bounding boxes and objects centers. Then, these markers are used to place EXCLUDE_OBJECT_START and EXCLUDE_OBJECT_END gcodes in the file surrounding each set of extrusions for that object.

More Repositories

1

steamdeck_startup_animations

A collection of steamdeck startup animations, plus a script to randomize your startup on each boot
Shell
220
star
2

steamdeck-tricks

Tricks and Tips I put together setting up my Steamdeck
40
star
3

AsyncIRC

Dependency-free multithreaded buffered non-blocking IRC Library in Python
Python
37
star
4

PITB

22
star
5

psvtools

PSV file trimmer, restoration, and validation utility (Python)
Python
17
star
6

3dp-voron2

Frank's Voron 2.4
Python
12
star
7

FaceMaker

Web based watchface designer for Facer (Android Wear)
JavaScript
9
star
8

ImgurMirror

Basic caching php mirror for imgur
PHP
9
star
9

flask-sandbox

A Flask plugin to restrict blueprints to specific users
Python
7
star
10

steam-batch-register-keys

Batch register keys on steam using https://store.steampowered.com/account/registerkey
JavaScript
5
star
11

printer-mods

My printer mods, mostly for Vorons
4
star
12

dockerfiles

A general repository for my dockerfiles
Python
3
star
13

rustboot

Rust EFI kernel
Rust
3
star
14

mamedb

A web based mame game search engine
Python
3
star
15

arch-dracut-hook

A set of libalpm hooks to make dracut easier to use for Archlinux
Shell
2
star
16

USBTypeCReader

A simple android application to read the output of the system power supply drivers, and display some helpful advice
Java
2
star
17

pam-python

C
1
star
18

Voron-Parts-Guide

Dockerfile
1
star
19

unbarracuda

a Chrome extension to help get around a web filter
JavaScript
1
star
20

elm-websockets

Simple-ish elm websockets
Elm
1
star
21

certbot-dns-dreamhost

Python
1
star
22

dotfiles

My dotfiles
Vim Script
1
star
23

flask-couchdb

This library helps you use CouchDB with Flask.
Python
1
star
24

tuning-corvette-wr4ith

My repo for tuning and tweaking my corvette's engine and transmission. Also, notes on other mods, specs, and dyno sheets most likely when I get some
1
star