by 1.21gigawatts » Tue Aug 13, 2019 3:47 pm
That would seem to be a task that would better be performed before getting to UCCNC. What program are you using to generate the raster? If it could be told to skip whitespace, that would be a plus. If not, you could cobble up something that edits the g-code and removes the raster lines that contain no output . I assume that "output" means a negative Z move. So, if there's a positive X move and Z is not at a cutting depth, just ignore the X move.
Of course, that makes a lot of assumptions, but it's the general idea of how you could do this.