M486 parsing
-
When parsing a file for print objects, we can easily find the beginning M476 Snnn A"***"
However there doesn't seem to be a corresponding "end" designation.The documentations says
Slicers should number purge towers and other global features with a negative index (or other flag) to distinguish them from regular print objects, since it is important to preserve color changes, purge towers, and brims.Do these "flags" have to be specifically supported by RRF, or is there some regular expression being used we can exploit?
i.e. We know RRF can find the flags used by Prusa slicer, but it's not clear how.
(other than presumably looking for "stop printing object...")I'm looking at it from the point of view of post processing code from slicers that don't support print objects in a usable way, and also to enable code folding.
Just using M486 S... is fine up until the last object, but any code after that (including stop gcode) will be tied up in the last object named.
-
I guess I can answer my own question to some extent in that if post processing we can add M486 S-1 to designate the end of an object and the start of something other than a print object.
-
@OwenD said in M486 parsing:
I guess I can answer my own question to some extent in that if post processing we can add M486 S-1 to designate the end of an object and the start of something other than a print object.
That's correct. Use -1 if you don't want the object to appear in the object list and be cancellable.
-
@dc42 said in M486 parsing:
@OwenD said in M486 parsing:
That's correct. Use -1 if you don't want the object to appear in the object list and be cancellable.I notice that once you use M486, that RRF doesn’t recognise the object labels that prusa slicer puts in.