@dc42 said in Object cancellation: cancel global features:
Would it really make sense to cancel all non-object items at once?
No of course not all at once, this is why I thought it was maybe possible to count and list non-object items the same way as object items so there would for example the following list
Object 0: "cube"
Object 1: "cylinder"
(non) object -1: purge towers, etc. Everything that the slicer gemerates and does not label as object
(non) object -2 to -99: e.g. custom gcode sequences that are explicitly labeled via M486 S(-2 to - 99) that the user may want to leave out at some point, and that are not printing moves. The negative numbers only make sure that these custom features can be used regardless of the number of printing objects (for which the slicer/firmware would automatically generate only positive numbers).
You could of course also label these custom features with M486 S999999 or so because you are realistically not printing a million objects but I am not sure if there would be some implications for that (like the requirement for continuous numbers so the firmware would create "null" placeholders for everything between the last object number that is actually in the gcode and 999999) EDIT: this seems to be the case but only up to 40 objects